How to Create and Assign Shipping Classes in WooCommerce

Modified on Thu, 15 May at 5:04 PM

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

  1. In your browser, go to yourwebsite.com/wp-admin and log in with your Username and Password.

  2. In the left menu, click WooCommerce > Settings.

  3. At the top, click the Shipping tab.


2. Create a New Shipping Class

  1. Under the Shipping tab, click the Shipping classes link.

  2. Click the Add shipping class button.

  3. 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.

  4. Click Save shipping classes.


3. Repeat for Additional Classes

  1. Repeat step 2 to create each class you need (e.g., "Heavy Products", "Oversized").

  2. All classes will appear in a table where you can edit or delete them.


4. Assign Shipping Classes to Products

  1. In the left menu, click Products > All Products.

  2. Find a product to edit and click Edit.

  3. Scroll down to the Product Data box and click the Shipping tab within it.

  4. In the Shipping class dropdown, select the class that matches the product (e.g., "Bulky Items").

  5. Click Update (or Publish for new products).


5. Configure Rates for Each Class

  1. Go back to WooCommerce > Settings > Shipping > Shipping Zones.

  2. Click Edit on a zone, then Edit on its shipping method (e.g., Flat rate).

  3. 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.

  4. 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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article