WooCommerce shipping classes let you group products with the same properties. You can use them to group products that need to be handled with care. You could differ small, light products from the big, heavy ones. In this article I will teach you how to use WooCommerce shipping classes.
How to add WooCommerce shipping classes in your store?
You need to go to WooCommerce → Shipping → Shipping classes. You'll find the Add shipping class button. Just click it to add a new one.
New fields will pop up. You need to enter:
- Shipping class name - a name to easily distinguish classes.
- Slug - if you don't enter the slug it will be created automatically.
- Description - is entirely optional and only visible in the admin area.
The slug is used as a reference to the shipping class in your database. For example you will see a slug while filtering products by shipping class in your store. In most cases you won't be using them anyway.
That's how I configured the shipping class:
How to assign a shipping class to a product?
Once you have a shipping class or classes configured, you have to assign a shipping class to products. You can make it manually per product or you can edit a few products in bulk. I'll show you both options.
Edit a single product
Go to the edit screen of a product simply by clicking the product name on the product list. Next go to the Product data metabox, click the Shipping tab and select the shipping class you want to assign.
You have to save the changes. That's all!
Add shipping classes in bulk
Do you want to assign more than one product to a shipping class? Simply select the products (first step), select an Edit option (second step) and Apply the operation (third step).
The new box will pop up. You have to select the shipping class you want your products to be assigned to.
Save the changes and you're ready to go next.
How to set shipping cost based on WooCommerce shipping classes?
You wanted to configure WooCommerce shipping classes in your store for the purpose. You want the shipping cost to depend on the shipping classes of products in the customer's cart. I'll show you how to do it.
Once you configure WooCommerce shipping classes in your store, then a new section shows up on the Flat rate settings screen. It is called Shipping class costs and you can see this section on the screenshot below:
You can set any cost for different shipping classes. The key option is the calculation type. I think that learning by example is the best way so I will show you how it works in practice.
I added two products to the cart. One of them is assigned to the Fragile shipping class, while the other isn't assigned to any shipping class:
I will use this cart set as a reference.
Charge per class
If you choose this option, you will charge for each shipping class individually. This means £5.00 base cost, £10.00 for a Beige Tote (Fragile shipping class) and £2.00 for Aliquam Consequat (no shipping class).
Do you see the calculation? The flat rate shipping method costs £17.00.
Charge per order
If you choose this option, you will charge for the most expensive shipping class. This means £5.00 base cost and £10.00 for a Beige Tote (Fragile - the most expensive shipping class). The £2.00 cost for Aliquam Consequat will not be added to the calculation.
The Flat rate shipping method costs £15.00 now.
That's all you have to know about Flat rate configuration. Set your prices and you're ready to sell!
Shipping classes with Table Rate Shipping
Flat rate is not the only option. You can use Flexible Shipping - the table rate shipping plugin. In short, table rate shipping method is very useful when you sell products of different sizes and weights. If Flat rate is not enough for you, then Flexible Shipping is an answer to your needs.
Just look at this video if you have never heard of this method:
Table rate looks like on the screenshot below:
As you can see, you are able to use WooCommerce shipping classes in this method as well, however only in the PRO version (compare free and PRO versions). If you have never heard of table rate shipping, read about what is table rate shipping. It is the most flexible way to manage shipping methods and costs.
Are you ready to use WooCommerce shipping classes in your store?
In this article you have learned how to configure WooCommerce shipping classes in your store. I hope this knowledgle will help you! If you have any concerns, just let us know in the comment section below!
To learn more about WooCommerce shipping, please make sure to read our Ultimate Guide to WooCommerce Shipping.