Hi @dkray , thank you for your interest.
In Advanced Shipping Rates PRO, there is a built-in packer that will handle all the “Tetris work” for you.
With Advanced Shipping Rates (free), you can achieve a similar result with some additional setup. One approach is to create a separate shipping method for each option, but this would mean that even a single small and lightweight product would trigger all four shipping options. I assume that you only want to offer the cheapest one.
In this case, I recommend using the option “Charge only the most expensive matching rule” and setting up one rule per shipping scenario. You should also set the group-by strategy to “All grouped together”, which is necessary for comparing product quantities and global weight.
Here’s an example setup:
#1 WHERE Product data / Weight > 2KG, Price 11.50 (once) // Large parcel
#2 WHERE Product data / Weight > 0.5KG, Price 8.50 (once) // Small parcel
#3 WHERE Product data / Min. dimension > 2cm, Price 6.90 (once) // Large letter
#4 WHERE Always, Price 5 (once) // Small letter
The order of the rules doesn’t matter, since only the most expensive one will be applied. However, there are a few edge cases that need to be covered with additional rules.
What if all products are flat (≤ 2cm), but there are many, requiring stacking in the letter?
#5 WHERE Advanced / Cart Items > 5 AND Product data / Mid. dimension > 20cm, Price 6.90 (once)
Or, if you prefer using shipping classes:
#5 WHERE Advanced / Cart Items > 2 AND Product kind / IN shipping class "flat but big", Price 6.90 (once)
…and what if there are lightweight products (globally ≤ 500g), but some have a height of more than 5cm?
#6 WHERE Product data / Min. dimension > 5cm, Price 8.50 (once) // Small parcel anyway
I believe this setup should work. You can enable the log system at the bottom of the settings to review the calculation logs. If you’re in production, set it to admin/shop manager only, to avoid excessive log storage.
Please, give me feedback about,
Carles Martin.
-
This reply was modified 1 month, 1 week ago by
wp-centrics.
-
This reply was modified 1 month, 1 week ago by
wp-centrics.
-
This reply was modified 1 month, 1 week ago by
wp-centrics.