Get more for your money each Wednesday with big savings on selected extensions. Shop this week's deals.
Product Icon

Table Rate Shipping for WooCommerce

by Woo
Advanced, flexible shipping. Define multiple shipping rates based on location, price, weight, shipping class or item count.

Bug in weight condition

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

Author

Maksimer AS

Current Status

Open

Last updated: June 22, 2023

0 comments

Log in to comment on this feature request.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.