The way conditions are queried there is no practical way of having for example one rate for packages less than 1 kg and one rate for packages more than 1 kg without both options showing up when the package is exactly 1 kg.
This is the query used for weight conditions:
‘{$weight}’ >= ( rate_min + 0 ) AND ‘{$weight}’ <= ( rate_max + 0 ) )
The fix would be checking if the weight is more than the minimum, not more than or equal – and the same for max. This also makes more sense.
The temporary solution for now is to set the maximium weight to 0.99999 kg instead of 1 for the under 1kg rate
Open
Last updated: June 22, 2023
0 comments
Log in to comment on this feature request.