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.
In The Article
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:
Install and ActivateMake sure the Flat Rate Shipping Plugin is installed and activated.
Go to Admin PanelNavigate to
Dotstore > Flat Rate Shipping
.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
- Method Title:
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 Used
→Equals
→FREESHIP20
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 Used
→Not Empty
Effect: If any coupon is used, this shipping method will not be shown during checkout.