Introduction Shipping classes let you group products with similar shipping costs (e.g., bulky or heavy items) and apply specific rates to each class. This guide shows you how to create shipping classes and assign them to products in simple, clear steps.
1. Log In and Open Shipping Settings
In your browser, go to
yourwebsite.com/wp-admin
and log in with your Username and Password.In the left menu, click WooCommerce > Settings.
At the top, click the Shipping tab.
2. Create a New Shipping Class
Under the Shipping tab, click the Shipping classes link.
Click the Add shipping class button.
Fill in the fields:
Shipping class name: Enter a name (e.g., "Bulky Items").
Slug: A URL-friendly version (e.g., "bulky-items").
Description (optional): Explain when to use this class.
Click Save shipping classes.
3. Repeat for Additional Classes
Repeat step 2 to create each class you need (e.g., "Heavy Products", "Oversized").
All classes will appear in a table where you can edit or delete them.
4. Assign Shipping Classes to Products
In the left menu, click Products > All Products.
Find a product to edit and click Edit.
Scroll down to the Product Data box and click the Shipping tab within it.
In the Shipping class dropdown, select the class that matches the product (e.g., "Bulky Items").
Click Update (or Publish for new products).
5. Configure Rates for Each Class
Go back to WooCommerce > Settings > Shipping > Shipping Zones.
Click Edit on a zone, then Edit on its shipping method (e.g., Flat rate).
In the Cost field, add class-specific costs using this format:
class:bulky-items=15;class:heavy-products=25;10
Here, bulky items cost 15, heavy products cost 25, and 10 is the fallback cost.
Click Save changes.
Tip: Separate each
class:slug=cost
pair with semicolons.
Congratulations! You’ve successfully set up shipping classes and assigned them to products. WooCommerce will now charge the correct shipping rate based on the product’s class. If you need to change a cost or class, return to these settings and update as needed.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article