How to add class based fee rules
Product shipping classes can be used to group products of similar type and used by some shipping methods, such as Flat Rate Shipping, to provide different rates to different classes of product.
For example, with shipping classes and Flat Rate Shipping, it’s possible to create different fees for different product types, like
bulky items and small items.
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.
This option allows a user to add extra cost based on shipping classes. It provides all shipping classes which are already used for the product. It displays all shipping classes list with a text box to add cost. The shipping class cost will be added to the shipping charge.
How to Create Shipping Class
Step - 1: Creating a Shipping Class in WooCommerce
Go to: WooCommerce > Settings > Shipping > Shipping Classes.
Step - 2: Click the Add Shipping Class button beneath the table. A new row appears.
Step - 3: Enter a Shipping Class Name and description. Slug (unique identifier) can be left blank and auto-generated, or you can enter one.
Step - 4: Save Shipping Classes.
Assign shipping classes to products
Now that you’ve created a shipping class, it is time to add some products!
To assign a shipping class to a product, go to the Shipping tab on one of your products and select your shipping class from the drop-down list.
Step 1: Go to WooCommerce > Products.
Step 2 Select the product and click Edit.
Step 3 Go to Shipping and select the Shipping Class from the drop-down.
Step 5 Update to save changes.
How to apply Shipping Class-Based Shipping Rule
Example: If you set $49 as a fee and “Poster class” shipping cost would be $10.
Now when cart having a product that has poster class then total fee would be $59.