How to Add Coupon-Based Shipping Method Rules in WooCommerce

This feature allows WooCommerce store owners to dynamically show or hide specific shipping methods based on the coupon used at checkout.

It’s useful for offering free or discounted shipping only when a customer applies a valid promotional code.

Use of Feature

With Coupon-Based Shipping Method Rules, you can:

  • Offer Free Shipping when a specific coupon is used (e.g., FREESHIP50 )
  • Hide Express Shipping when a discount coupon is active (e.g., SALE20 )
  • Incentivize coupon usage by pairing it with special shipping offers
  • Create tailored customer experiences to drive conversion

This improves the shopping experience and adds more flexibility to your promotions strategy.


Configuration Steps

To enable and set up coupon-based shipping rules:

  1. Install and ActivateMake sure the Flat Rate Shipping Plugin is installed and activated.

  2. Go to Admin PanelNavigate to Dotstore > Flat Rate Shipping .

  3. Click Add New Shipping Method .

    Fill in Basic Settings

    • Method Title: Coupon-Based Free Shipping
    • Shipping Fee Type: Fixed or Percentage (e.g., $0 for free shipping)
    • Scroll to the ‘Shipping Condition’ Section

      Under Coupon, select:

    • Condition Type: Coupon Used
    • Operator: Equals
    • Value: Your coupon code (e.g., FREESHIP50 )

      (Optional) Add additional conditions like:

    • Cart Total
    • Country
    • User Role
    • Product Category

  4. Save and test the shipping method.

Ready to See All Features in Actions?

Access our complete advanced features instance, allowing you to configure every feature with real checkout scenarios.


Real-World Examples

Example 1: Offer Free Shipping with a Specific Coupon

Goal: Let users access free shipping only when they use FREESHIP20 at checkout.

  • Title: Free Shipping with Coupon

    Shipping Fee: $0

    Condition:

    • Coupon UsedEqualsFREESHIP20

Effect: If the coupon is applied, the shipping method becomes visible. Otherwise, it’s hidden.



Example 2: Hide Express Shipping When Any Discount Coupon Is Used

Goal: Prevent users from combining fast shipping with a discount coupon.

  • Title: Express Shipping

    Shipping Fee: $25

    Condition:

    • Coupon UsedNot Empty

Effect: If any coupon is used, this shipping method will not be shown during checkout.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.