Jump to content

Problem with shipping fee by weight range after upgrade


Recommended Posts

I've set up a range of weights for my shipping costs and have set the weights for all of my products.
Before upgrading to 1.3.1, my shipping costs were working fine.
However, post-upgrade, for certain (total) weights, it seems it's pulling in the max shipping cost rather than the proper value. And yet for some weights, it works without fail.

I ran the query found in the Carrier.php file for the totalWeight calculation with the actual values in the db and it's comes back correctly. However the actual shipping cost in the cart is all screwed up!

Help? I've submitted this as a bug already.

TIA.

Link to comment
Share on other sites

The way it was solved for me was to ensure that there is no gap in between the ranges.
The key here is that there is a precision of 6 decimal places if you need it.
So the way I set it up was like the following:

0.00kg (inclusive) to 0.25kg (exclusive)
0.25kg (inclusive) to 0.50kg (exclusive)
0.50kg (inclusive) to 0.75kg (exclusive)

you can't do something like
0.00kg to 0.25kg
0.26kg to 0.50kg
0.51kg to 0.75kg
otherwise it's possible that the calculated total weight falls in between (e.g. between 0.25 and 0.26). If it does, it will use your maximum shipping fee.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...