跳到内容

Cart Validation for WooCommerce

v1.0.1

Sahil Multani · 2026年3月16日 上架

Restrict WooCommerce checkout by products, categories, user roles, and more. Create powerful cart validation rules.

正在使用
10+
评分
5.0 / 5
累计下载
745
最近更新
2026年11月11日
1 条评价需要 WordPress 5.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

Set the general settings for validation
Set the general settings for validation
Set the default error message for validation
Set the default error message for validation
Manage the cart validation rules on listing page
Manage the cart validation rules on listing page
Set the validation rules configuration
Set the validation rules configuration
Set conditions for the cart validation
Set conditions for the cart validation
Cart page with the checkout restriction message
Cart page with the checkout restriction message

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:

  1. If cart contains “Alcohol”
  2. AND shipping country = Restricted Country
  3. Block checkout

Perfect for compliance-based businesses.

2. Same-Day Delivery Product Isolation

  1. If cart contains category “Same-Day Delivery”
  2. Do not allow other categories.
  3. Error message: Same-Day Delivery items must be purchased separately.

3. Members-Only Products

  1. If user role = Guest
  2. AND cart contains Premium Category
  3. Block checkout

4. Wholesale Protection

  1. If user role ≠ Wholesaler
  2. AND cart contains Wholesale Category
  3. Block checkout

4. Incompatible Product Protection

  1. If cart contains Product A
  2. AND Product B
  3. Show restriction error

Prevents order mistakes and support tickets.

💁 Who Is This Plugin For?

  1. Alcohol & regulated product sellers
  2. Wholesale & B2B stores
  3. Membership stores
  4. Delivery-based stores
  5. International WooCommerce stores
  6. Stores with incompatible product combinations
  7. Compliance-heavy businesses

☎️ CONTACT US

  • Free plugin: Need Technical Help? – Click here

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums