How to Hide Shipping Methods Using Total Cart Quantity in Advanced Rules
Total Cart Quantity Advanced Rules allow you to hide shipping methods based on the total number of items in the cart, regardless of product type or category.
This is useful when shipping availability depends on order size rather than order value or product details.
You can define minimum and maximum quantity limits for the entire cart.
Shipping methods are hidden automatically when the cart quantity matches your conditions.
In The Article
How it works
When a customer adds products to the cart, the plugin calculates:
- The total number of items in the cart
- Whether that quantity falls within your defined range
If the total cart quantity matches your rule, the selected shipping method is hidden on the cart and checkout pages.
Steps to configure Total Cart Quantity Advanced Rules
Step 1: Create or edit a hide shipping rule
- Go to WooCommerce > Hide Shipping Method > Manage Rules
- Click Add New Rule or edit an existing rule
Step 2: Enable Advanced Rules
- In the rule settings, select Advanced Rules
- Click + Add Rule to add a new advanced condition
Step 3: Select the Total Cart Quantity condition
For the rule:
- Choose Total Cart Quantity as the condition type
- Set the Minimum Quantity
- Set the Maximum Quantity
This defines the quantity range for which the rule will apply.
Step 4: Choose the rule match option
- Select All Rules Match if the rule should apply only when all advanced conditions are met
- Select Any One Rule Match if the rule should apply when any condition matches
Step 5: Select shipping methods to hide
- Choose the shipping methods you want to hide
- Or hide all shipping methods and keep only the preferred ones active
Step 6: Save and enable the rule
- Review the configuration
- Make sure the Status is enabled
- Click Save
The rule will now work automatically based on the total cart quantity.
Example scenario
An online store wants to control shipping options for bulk orders.
The store owner decides:
- Hide Standard Shipping when the total cart quantity is 20 items or more
- Offer only Freight Shipping for large orders
Setup:
- Add a Total Cart Quantity advanced rule
- Set minimum quantity to 20
- Hide all shipping methods except Freight Shipping
Result:
- Customers placing large orders see only suitable shipping options
- Shipping remains efficient and cost-effective
Why use the total cart quantity advanced rules
- Manage shipping for bulk or large orders
- Prevent unsuitable shipping options for high-quantity carts
- Apply simple quantity-based shipping logic
- Automate shipping visibility without manual checks
Conclusion
Total Cart Quantity Advanced Rules give you straightforward control over shipping visibility based on how many items are in the cart.
By using these rules, you ensure customers see shipping options that make sense for their order size, improving both checkout clarity and logistics efficiency.
FAQs
1. What is a total cart quantity rule in hide shipping?
A total cart quantity rule hides shipping methods based on the total number of items in the cart, regardless of product type or category.
2. Can I use total cart quantity rules for bulk orders?
Yes. This rule is ideal for managing shipping methods for large or bulk orders.
3. Does this rule work with variable products?
Yes. Variable products are counted based on the total quantity added to the cart.
4. What happens if the cart quantity is outside the defined range?
If the cart quantity does not match the defined range, the rule will not apply and normal shipping methods will be shown.
5. Will this rule change shipping prices?
No. Total cart quantity rules only control which shipping methods are visible or hidden, not the shipping costs.