How to add free shipping magento only for specific categories

How to add free shipping magento only for specific categories

August 5, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to add free shipping magento only for specific categories

Configuring Magento for Category-Specific Free Shipping

Offering free shipping is a powerful incentive for driving e-commerce sales. However, not all product categories may qualify for this perk due to high freight costs or other operational constraints. This post guides you through setting up category-specific free shipping rules in your Magento store.

Understanding the Problem: Inclusive and Exclusive Categories

You’ve already configured most of your free shipping rule correctly. You want it to apply when the total order amount reaches $200 for products belonging to specific categories (150, 176, etc.). The challenge lies in excluding certain categories that you don’t want to offer free shipping for (180, 327, etc.).

Your current rule structure is almost there:

If ALL of these conditions are TRUE:
    If total amount equals or greater than $200
        For a subselection of items in cart matching ALL of these conditions:
            Category is one of 150, 176, 185, etc.
            Category is not one of 180, 327, etc.

Configuring the Rule: Using Magento’s Advanced Conditions

To achieve your goal, you need to refine the rule conditions. Here are the steps:

  1. Log in to your Magento admin panel and navigate to Promotions > Shopping Cart Price Rules.

  2. Click on the name of your existing free shipping rule.

  3. In the Rule Information section, scroll down to the Conditions tab.

  4. You’ll see that you already have conditions for the total amount reaching $200 and for category inclusion (in the form Category > Category ID).

  5. To exclude specific categories, click on Add.

  6. Under Condition, select Cart Item Attribute = Category ID.

  7. In the Is dropdown, choose Not Equals.

  8. In the text field that appears, enter each category ID you want to exclude (180, 327, etc.). Separate them with commas.

  9. Click on Save Condition.

Your rule should now look like this:

If ALL of these conditions are TRUE:
    If total amount equals or greater than $200
        For a subselection of items in cart matching ALL of these conditions:
            Category is one of 150, 176, etc.
            Category is not one of 180, 327, etc. (new condition)

Conclusion

By following this approach, you successfully configure Magento to offer free shipping only for the desired categories while excluding those that don’t qualify. This allows you to maintain a competitive edge without incurring excessive freight costs.

Remember, effective category management is crucial in e-commerce. Learn more about optimizing your product categorization strategy from our comprehensive guide on Magento category best practices.

Checkout Catalog Admin Configuration

Our network