How to create a product-specific quantity range-based WooCommerce shipping
With product-specific quantity range shipping, you can charge different shipping rates based on the number of items purchased for a specific product.
For example, charge $5 shipping if a customer buys 1–3 units of a product, and $10 shipping if they buy 4–6 units.
In The Article
Why use product-specific quantity range shipping?
- Fair Pricing: Make sure shipping costs scale with order size.
- Profit Protection: Prevent losses on bulk orders by adding extra fees.
- Promotions: Encourage larger orders with discounted shipping after a certain quantity.
- Flexibility: Create different rules for different products, not just for the whole cart.
Configure the steps
1. Add a new shipping method
- Go to Dashboard → Dotstore → Flat Rate Shipping.
- Click Add Shipping Method.
- Name it something like “Product Quantity Range Shipping”.
2. Add a product-specific rule
- Go to the Shipping Rules tab.
- Click Add New Rule.
- From the Condition dropdown, select Product.
Choose the product you want this rule to apply to.
3. Define quantity ranges
- In the same rule, add a Quantity condition.
- Enter the range (e.g., 1–3, 4–6, 7–10).
- Set the shipping fee for each range.
Example:
- 1–3 units = $5 shipping
- 4–6 units = $10 shipping
7+ units = $15 shipping
4. Save and test
- Click Save Changes.
- Go to your store, add the product to the cart, and adjust the quantity.
The shipping cost should update automatically based on the range.
Ready to See All Features in Actions?
Access our complete advanced features instance, allowing you to configure every feature with real checkout scenarios.
Two real examples
Example 1: Small Electronics (Headphones)
Product: Wireless Headphones
Price: $80
Rule:
- 1–2 units → $7 shipping
- 3–5 units → $12 shipping
6+ units → $20 shipping
Checkout Result:
- Customer adds 3 headphones → Shipping = $12
Example 2: Clothing (T-Shirts)
Product: Cotton T-Shirt
Price: $25
Rule:
- 1–5 units → $5 shipping
- 6–10 units → $8 shipping
11+ units → Free Shipping
Checkout Result:
- Customer adds 12 T-shirts → Shipping = Free