Quantity of Product Category in Cart Condition
The Quantity of Category in Cart display condition allows you to show or hide content based on the total number of products from a specific category that a visitor has added to their WooCommerce cart. This broader targeting approach enables you to create category-focused marketing strategies and cross-selling opportunities.
How It Works
This condition evaluates the combined quantity of all products from a chosen category currently in a visitor's cart. You can set rules to display content when the total quantity of products from that category meets specific criteria, allowing for strategic messaging based on category-level purchasing behaviour.
Setting Up the Rule
When configuring the Quantity of Category in Cart condition, you'll need to specify:
- Category: Select the specific product category you want to monitor from your WooCommerce category structure
- Comparator: Choose from three options:
- More than - Display content when the total quantity exceeds your specified number
- Less than - Display content when the total quantity is below your specified number
- Is equal to - Display content when the total quantity matches your specified number exactly
- Quantity: Enter the number of items you want to compare against
Common Use Cases
Cross-selling Accessories
Target customers with complementary products based on their category purchases:
- Show accessory recommendations when customers add multiple clothing items to their cart
- Display care product suggestions when customers purchase beauty or skincare items
Category-specific Bundles
Offer relevant bundles and packages based on category interest:
- Present "Complete the Look" bundles when customers have multiple fashion items
- Suggest starter kits when customers add several items from hobby or craft categories
Volume Incentives
Encourage larger category-based purchases with targeted offers:
- Display "Buy 3 books, get 1 free" promotions when customers have 2 books in their cart
- Show bulk discounts for office supplies when customers reach certain category thresholds
Important Notes
- The Quantity of Category in Cart condition only works with WooCommerce-enabled sites
- The rule counts all products from the specified category, regardless of individual product types
- Products assigned to multiple categories will be counted for each relevant category
- The condition updates dynamically as customers add or remove items from their cart
- This rule works for both logged-in and guest users
- If no products from the specified category are in the cart, the quantity is considered to be 0
Troubleshooting
If the Quantity of Category in Cart condition isn't working as expected:
- Ensure WooCommerce is active and properly configured
- Verify you've selected the correct category from the dropdown
- Check that products are properly assigned to the expected categories
- Confirm that the cart contains products from the specified category
- Test with different quantities to ensure the rule triggers at the right thresholds
The Quantity of Category in Cart display condition provides flexible targeting based on customer interest in specific product categories, enabling you to create focused marketing campaigns that drive increased sales through strategic cross-selling and category-based promotions.