
Restrict WooCommerce checkout by products, categories, user roles, and more. Create powerful cart validation rules.
| Author: | Sahil Multani (profile at wordpress.org) |
| WordPress version required: | 5.0 |
| WordPress version tested: | 6.9.4 |
| Plugin version: | 1.0.0 |
| Added to WordPress repository: | 16-03-2026 |
| Last updated: | 17-03-2026 |
| Rating, %: | 100 |
| Rated by: | 1 |
| Plugin URI: | https://wordpress.org/plugins/cart-validation... |
| Total downloads: | 207 |
![]() Click to start download |
|
Cart Validation for WooCommerce allows store owners to create advanced conditional cart rules and restrict checkout based on products, categories, user roles, and more.
Easily prevent incompatible purchases, block restricted countries, restrict product combinations, and control checkout behavior using flexible AND/OR rule logic.
Whether you sell regulated products, wholesale items, same-day delivery products, or member-only items — this plugin gives you full control over WooCommerce cart validation.
No coding required.
???? Why You Need This Plugin
Many WooCommerce stores face issues like:
- Customers mixing incompatible products
- Country-based product restrictions
- Role-based purchasing limitations
- Delivery conflicts (same-day vs standard items)
- Regulatory compliance (alcohol, digital goods, region-specific products)
By default, WooCommerce does not allow advanced conditional checkout restrictions.
Cart Validation for WooCommerce solves this.
???? Key Features
1. Enable / Disable Cart Validation
Turn cart validation rules on or off anytime with one click.
2. Stop at First Validation Error (Advanced Error Handling)
Choose how validation errors behave:
✔ Show only the first error (clean UX)
✔ Show all matching validation errors at once
This gives store owners better control over customer experience.
3. Default Global Error Message
Set a default validation error message that applies to all rules.
Example: “Your cart contains restricted items. Please review your cart before proceeding.”
You can override this message per rule.
4. Advanced Conditional Rule Builder
Create powerful rules using:
✔ Country-Based Restrictions
Restrict purchases based on shipping country.
Example: “Alcohol cannot be purchased in restricted countries.”
✔ Cart Contains Product
Restrict specific product combinations.
Example: “A printer cannot be purchased with incompatible ink cartridges.”
✔ Cart Contains Category
Prevent mixing products from specific categories.
Example: “Customers cannot mix “Same-Day Delivery” items with regular products.”
✔ User Role-Based Restrictions
Apply rules based on customer roles.
Example: “Only logged-in users can purchase premium products.”
5. AND / OR Conditional Logic
Combine multiple conditions using:
- AND logic (all conditions must match)
- OR logic (any condition can match)
This allows advanced rule combinations like:
— Restrict checkout if cart contains Category = “Alcohol” AND Country = “Germany”
Or
— Restrict checkout if user role = Guest OR Country = Restricted List
5. Schedule Rules with Start & End Dates
Set rule activation dates.
Perfect for:
- Holiday restrictions
- Temporary promotions
- Regulatory changes
- Seasonal product limitations
Example: “Restrict fireworks products outside festival dates.”
???? Real World Use Cases
1. Restrict WooCommerce Checkout Based on Product and Shipping Country
Example:
- If cart contains “Alcohol”
- AND shipping country = Restricted Country
- Block checkout
Perfect for compliance-based businesses.
2. Same-Day Delivery Product Isolation
- If cart contains category “Same-Day Delivery”
- Do not allow other categories.
- Error message: Same-Day Delivery items must be purchased separately.
3. Members-Only Products
- If user role = Guest
- AND cart contains Premium Category
- Block checkout
4. Wholesale Protection
- If user role ≠ Wholesaler
- AND cart contains Wholesale Category
- Block checkout
4. Incompatible Product Protection
- If cart contains Product A
- AND Product B
- Show restriction error
Prevents order mistakes and support tickets.
???? Who Is This Plugin For?
- Alcohol & regulated product sellers
- Wholesale & B2B stores
- Membership stores
- Delivery-based stores
- International WooCommerce stores
- Stores with incompatible product combinations
- Compliance-heavy businesses
☎️ CONTACT US
- Free plugin: Need Technical Help? – Click here
Screenshots
FAQ
ChangeLog






