Quantity of Product in Cart Condition
The Quantity of Product in Cart display condition allows you to show or hide content based on how many units of a specific product a visitor has added to their WooCommerce cart. This granular targeting enables you to create sophisticated upselling, cross-selling, and bulk discount opportunities.
How It Works
This condition evaluates the quantity of a particular product currently in a visitor's cart. You can set rules to display content when the quantity of a chosen product meets specific criteria, allowing for highly targeted messaging based on customer purchasing behaviour.
Setting Up the Rule
When configuring the Quantity of Product in Cart condition, you'll need to specify:
- Product: Select the specific product you want to monitor from your WooCommerce product catalogue
- Comparator: Choose from three options:
- More than - Display content when the quantity exceeds your specified number
- Less than - Display content when the quantity is below your specified number
- Is equal to - Display content when the quantity matches your specified number exactly
- Quantity: Enter the number of items you want to compare against
Common Use Cases
Bulk Discount Promotions
Encourage customers to purchase larger quantities by offering volume discounts:
- Show "Buy 5 or more and save 15%" when customers have 3-4 units of a product in their cart
- Display bulk pricing tables when customers reach certain quantity thresholds
Complementary Product Suggestions
Offer relevant add-ons based on product quantities:
- Suggest additional accessories when customers add multiple units of electronics
- Recommend care products when customers purchase multiple clothing items
Cross-selling Opportunities
Target customers with related products based on their current selections:
- Show compatible products when customers add specific quantities of base items
- Suggest upgrade options when customers have multiple standard products in their cart
Important Notes
- The Quantity of Product in Cart condition only works with WooCommerce-enabled sites
- The rule monitors specific individual products, not product categories or variations
- Product variations are treated as separate products for this condition
- The condition updates dynamically as customers add or remove items from their cart
- This rule works for both logged-in and guest users
- If the specified product is not in the cart, the quantity is considered to be 0
Troubleshooting
If the Quantity of Product in Cart condition isn't working as expected:
- Ensure WooCommerce is active and properly configured
- Verify you've selected the correct product from the dropdown
- Check that the product is actually in the cart with the expected quantity
- Confirm that product variations are set up correctly if using variable products
- Test with different quantities to ensure the rule triggers at the right thresholds
The Quantity of Product in Cart display condition provides precise control over your messaging, enabling you to create highly targeted experiences that respond to specific customer behaviours and drive increased sales through strategic upselling and cross-selling.