In some cases, it is preferable to charge a shipping cost per item rather than using a flat rate. For example, if you sell sofas, you might want to charge $50 for shipping each sofa. However, you may also sell sofa pillows, which can be shipped at no additional cost. In this scenario, shipping should be calculated based on the number of sofas, but not include sofa pillows.
Fortunately, WooCommerce Conditional Shipping Pro makes this easy with “Price per piece of a shipping class X” action.
How to set it up
- Go to WooCommerce > Settings > Shipping > Conditions
- Add the following ruleset:
Shipping Classes – include – Sofas
Set shipping method price – [shipping method] – 50 – $ per pcs – of Sofas
- Click Save changes
Now, shipping will be charged at $50 for each sofa. Any additional products, such as sofa pillows, will be shipped for free when included in the same order.
Charging Per Item for Multiple Shipping Classes
What if you also sell sofa tables that ship for $25 each? In that case, you can charge different rates for multiple shipping classes by switching from Set shipping method price to Increase shipping method price, and creating a separate ruleset for each shipping class.
Here’s how to configure it:
Shipping for Sofas
Shipping Classes – include – Sofas
Increase shipping method price – [shipping method] – 50 – $ per pcs – of Sofas
Shipping for Sofa Tables
Shipping Classes – include – Sofa tables
Increase shipping method price – [shipping method] – 25 – $ per pcs – of Sofa tables
By using Increase shipping method price, the shipping cost accumulates based on the quantity of items across different shipping classes. This allows for a flexible pricing structure that adapts to your product catalog.