[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
shipping calculation questions
I am trying to support shipping calculations for multiple countries.
Right now, we have DHL worldwide and UPS Ground in the US only with more
types to come.
The problem I have is this:
If I select USA as the country and then select UPS as the shipping method,
everything works fine. If I then change it to another country, I get
something weird. The shipping types allowed are correct (only DHL), and
the total value shown in the shipping drop-down is correct for that
country. But, the total shipping shown in the shopping card calculation
at the top of the checkout page is not correct. In fact, it is different
from either the previous UPS value, or from any of the previous DHL
values.
How can the shipping be correct in one spot on the page and not another?
If I hit update, everything is happy.
Any ideas?
Note that this only happens if I go from US/UPS to some other country on
the checkout page. Only the US can use UPS Ground. DHL can be used for
all countries (including the US).
Even if the shipping type stays UPS, shouldn't the UPS calculations return
zero instead of some number? The only UPS shipping tables I have are for
domestic US shipment. Here is what my shipping.asc looks like:
code description criteria min max formula
0 No shipping weight 0 99999999 e No shipping mode selected.
default No shipping weight 0 99999999 g PriceDivide
dhl DHL Air Freight quantity 0 0 e Nothing to ship!
dhl DHL Air Freight quantity 0 1000 s calc_dhl ;[value country], ;[value state]
dhl DHL Air Freight quantity 1000 999999 e Please call us
for bulk shipping information.
upsg UPS Ground weight [value state] 0 0 e Nothing
to ship!
upsg UPS Ground AK HI 0 150 u Ground [value zip] 13.00
upsg UPS Ground 0 150 u Ground [value zip] 3.00
upsg UPS Ground 150 999999 e @@TOTAL@@ lbs too heavy
for UPS
(the mailer is breaking some lines)
I changed the original [default zip 940] to the [value zip] above in hopes
that this would cause the UPS calc to fail. Instead, I get something like
$14.99. I have carefully made sure that the zipcode field is null before
changing the shipping type and that still doesn't do it.
Any help would be appreciated.
Best,
Kyle