Linux 软件免费装
Banner图

CartRules One Product in Cart for WooCommerce

开发者 businessbloomer
更新时间 2026年10月14日 22:05
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce cart checkout restrict cart one product

下载

1.0.0 1.0.1

详情介绍:

This plugin stops customers from mixing different products in the same order. If a product is already in the cart, adding a different product will either be blocked, or the cart will be emptied first, depending on the option you choose. Different variations of the same product are treated as the same product, so they're never blocked from sitting in the cart together. This is useful for stores that sell a small number of standalone products or bundles that should never be combined with anything else in the same order, for example a single service booking, a made-to-order item, or a product with its own dedicated fulfillment process. Once activated, go to WooCommerce > Settings > CartRules > One Product in Cart to turn the restriction on and choose what should happen. Works with both the classic, shortcode-based cart and checkout, and the newer WooCommerce Cart and Checkout blocks. Why upgrade to CartRules PRO? This plugin only restricts the cart to one product at a time, for every product on the store. CartRules One in Cart PRO replaces it, and every other free CartRules plugin, with a single plugin that handles every rule type and gives you more control over how each one behaves. Every rule type, in one plugin More control per rule Get CartRules One in Cart PRO →

安装:

  1. Upload the plugin folder to /wp-content/plugins/, or install it through the Plugins menu in WordPress directly.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to WooCommerce > Settings > CartRules > One Product in Cart to turn the restriction on and choose what should happen.

常见问题:

Is there a version that combines multiple rule types?

Yes. CartRules One in Cart PRO lets you combine category, tag, brand, shipping class, product type, and individual product/variation restrictions in one plugin, with unlimited rules and more advanced conditions.

Does this treat variations of the same product as different products?

No. WooCommerce always identifies a variation by its parent product, so different variations of the same product can sit in the cart together; only a genuinely different product triggers the restriction.

Does this work with the WooCommerce Cart and Checkout blocks, or only the classic shortcode-based cart?

Both. The restriction is applied when a product is added to the cart, so it works the same way whether your store uses the classic cart/checkout pages or the block-based versions.

Does this affect orders created or edited from wp-admin?

No, the restriction only applies to the storefront cart. Orders added or changed from wp-admin are not affected.

更新日志:

1.0.1 1.0.0