Title: CartRules One Category in Cart for WooCommerce
Author: Rodolfo Melogli
Published: <strong>August 13, 2026</strong>
Last modified: August 13, 2026

---

Search plugins

![](https://ps.w.org/cartrules-one-category-in-cart-for-woocommerce/assets/banner-
772x250.png?rev=3645514)

![](https://ps.w.org/cartrules-one-category-in-cart-for-woocommerce/assets/icon-
256x256.png?rev=3645514)

# CartRules One Category in Cart for WooCommerce

 By [Rodolfo Melogli](https://profiles.wordpress.org/businessbloomer/)

[Download](https://downloads.wordpress.org/plugin/cartrules-one-category-in-cart-for-woocommerce.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/cartrules-one-category-in-cart-for-woocommerce/#description)
 * [Reviews](https://wordpress.org/plugins/cartrules-one-category-in-cart-for-woocommerce/#reviews)
 *  [Installation](https://wordpress.org/plugins/cartrules-one-category-in-cart-for-woocommerce/#installation)
 * [Development](https://wordpress.org/plugins/cartrules-one-category-in-cart-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/cartrules-one-category-in-cart-for-woocommerce/)

## Description

This plugin stops customers from mixing products from different categories in the
same order. If a product is already in the cart, adding a product from a different
category will either be blocked, or the cart will be emptied first, depending on
the option you choose.

This is useful for stores that need to keep certain product categories separate 
at checkout, for example because they need different shipping, come from different
suppliers, or are fulfilled differently.

Once activated, go to WooCommerce > Settings > CartRules > One Category 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.

## Installation

 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 Category in Cart to turn the restriction
    on and choose what should happen.

## FAQ

### What happens if a product belongs to more than one category?

It’s allowed, as long as it shares at least one category with what’s already in 
the cart.

### Does this work with variable products?

Yes, it works with all product types.

### 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.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“CartRules One Category in Cart for WooCommerce” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ Rodolfo Melogli ](https://profiles.wordpress.org/businessbloomer/)

[Translate “CartRules One Category in Cart for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/cartrules-one-category-in-cart-for-woocommerce)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/cartrules-one-category-in-cart-for-woocommerce/),
check out the [SVN repository](https://plugins.svn.wordpress.org/cartrules-one-category-in-cart-for-woocommerce/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/cartrules-one-category-in-cart-for-woocommerce/)
by [RSS](https://plugins.trac.wordpress.org/log/cartrules-one-category-in-cart-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release

## Meta

 *  Version **1.0.0**
 *  Last updated **4 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **7.0.4**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [cart](https://wordpress.org/plugins/tags/cart/)[checkout](https://wordpress.org/plugins/tags/checkout/)
   [product category](https://wordpress.org/plugins/tags/product-category/)[restrict cart](https://wordpress.org/plugins/tags/restrict-cart/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/cartrules-one-category-in-cart-for-woocommerce/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/cartrules-one-category-in-cart-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cartrules-one-category-in-cart-for-woocommerce/reviews/)

## Contributors

 *   [ Rodolfo Melogli ](https://profiles.wordpress.org/businessbloomer/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/cartrules-one-category-in-cart-for-woocommerce/)