[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
shipping price problem
Hi folks,
I am calculating my own shipping because we have some odd ways of doing it
that do not fit into the UPS scheme at all. Formulas don't work either.
So, I wrote my own GlobalSub that does the calculations. It works like a
charm. However, I get a shipping note like that below whenever I have too
much weight. DHL is the shipping method that I am calculating, and UPS is
the default one shipped with the MV 3.12 simple demo. In this case, I
have selected UPS as the shipping mode! What is calling dhl anyway?
"Shipping Note: 168 lbs too heavy for UPSNo match found for mode 'dhl',
quantity '120', returning 0."
My shipping.asc lines for dhl look like this:
dhl DHL Air Freight quantity 0 0 e Nothing to ship!
dhl DHL Air Freight quantity 0 50 s calc_dhl ;[value
country], ;[value state]
dhl DHL Air Freight quantity 50 999999 e Please call us
for bulk shipping information.
(my mailer is breaking the lines, but hopefully you can see what is going
on.)
The error line works for the other shipping types. It is printing out the
error line for UPS ground and then appending some sort of internal error
that probably shouldn't be there. Of course there is no match found for
dhl, I didn't choose that shipping type!
I added a line to the top of shipping.asc:
default No shipping weight 100 99999999 e Too much weight.
Please call us for bulk shipping.
When I order 150 units (at 1.5lbs each), I do not see this error.
It appears that [data session ship_message] is _not_ reset after an error.
What can I use? For instance, if I chose 51 units, it is too much for DHL
shipping. I get the expected error message above. However, if I choose a
different shipping method after that and hit "update", I get the same
shipping message! The cost of shipping for that number of units/weight is
correct, but the shipping message is not reset. Where is the current
shipping message?
Any help would be appreciated.
Best,
Kyle