Add extra fees based on the cart shipping class
Easily apply additional charges based on the shipping class of the products in the cart. Shipping classes help you group similar product types, such as bulky, lightweight, or fragile items, and assign specific fees accordingly.
In the article
- How it works
- How to create a shipping class
- Step 1: Creating a Shipping Class in WooCommerce
- Step 2: Assign shipping classes to products
- Step 3: Create a shipping class-based extra fee rule
- Step 4: Apply the extra fees on shipping class products
- Example 1: Extra handling fee for bulky items
- Example 2: Poster pack item packaging fee
How it works
This feature allows you to set up different extra fees for different shipping classes using Flat Rate or other shipping methods.
For example, you can charge a higher fee for bulky items due to increased handling or shipping costs, while keeping the fee low or free for small, lightweight products.
Shipping classes are used to group products – they are not used directly to offer shipping rates to customers. To set up shipping rates, configure Shipping Zones, and then add your shipping class costs to a shipping method, like Flat Rate.
How to create a shipping class
Step 1: Creating a Shipping Class in WooCommerce
Step 2: Assign shipping classes to products
Step 3: Create a shipping class-based extra fee rule
Go to the Dotstore plugins and add a new fee and configure the fee title, fee amount, and conditional rules.
Step 4: Apply the extra fees on shipping class products.
Any products from the specific shipping class, like Bulky, are added, and this extra fee will be applied to the cart.
Example 1: Extra handling fee for bulky items
A furniture store wants to charge an additional $50 for items categorized as “Bulky Items” due to special handling and delivery requirements.
By assigning a "bulky" shipping class to such products, an automatic handling fee is applied at checkout whenever these items are in the cart.
Example 2: Poster pack item packaging fee
An online gift shop sells poster items like glassware and ceramics. To cover the cost of special packaging, they apply a $9 packaging fee to any cart containing products marked under the “Poster pack” shipping class. This ensures items are safely packed while recovering the packaging expense.