Title: CartRules One Category in Cart for WooCommerce
Author: Rodolfo Melogli
Published: <strong>13 de agosto de 2026</strong>
Last modified: 8 de septiembre de 2026

---

Buscar 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=3686238)

# CartRules One Category in Cart for WooCommerce

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

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

 * [Detalles](https://es.wordpress.org/plugins/cartrules-one-category-in-cart-for-woocommerce/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/cartrules-one-category-in-cart-for-woocommerce/#reviews)
 *  [Instalación](https://es.wordpress.org/plugins/cartrules-one-category-in-cart-for-woocommerce/#installation)
 * [Desarrollo](https://es.wordpress.org/plugins/cartrules-one-category-in-cart-for-woocommerce/#developers)

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

## Descripción

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.

#### Why upgrade to CartRules PRO?

This plugin only restricts the cart by category. 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**

 * Category, tag, brand, shipping class, product type, any custom taxonomy, or individual
   products, instead of installing a separate plugin per rule type.
 * Unlimited rules, each with its own settings, managed from one screen: WooCommerce
   > Settings > CartRules > One in Cart PRO.

**More control per rule**

 * Scope a rule to specific groups instead of «any one at a time» (for example, 
   only keep «Gift Cards» separate, and let everything else mix freely).
 * Choose what happens when a rule is broken: block the new product with a message,
   or empty the cart and add it, decided separately for each rule.
 * Flags other cart restrictions already running on your store, whether from a free
   CartRules plugin or your own custom code, so two rules never silently conflict.
 * Works with both the classic cart and checkout and the WooCommerce Cart and Checkout
   blocks.

[Get CartRules One in Cart PRO ](https://cartrules.com/product/cartrules-one-in-cart-pro/)

## Instalación

 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

### Is there a version that combines multiple rule types?

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

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

## Reseñas

No hay valoraciones para este plugin.

## Colaboradores y desarrolladores

«CartRules One Category in Cart for WooCommerce» es un software de código abierto.
Las siguientes personas han colaborado con este plugin.

Colaboradores

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

[Traduce «CartRules One Category in Cart for WooCommerce» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/cartrules-one-category-in-cart-for-woocommerce)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/cartrules-one-category-in-cart-for-woocommerce/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/cartrules-one-category-in-cart-for-woocommerce/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/cartrules-one-category-in-cart-for-woocommerce/)
por [RSS](https://plugins.trac.wordpress.org/log/cartrules-one-category-in-cart-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 1.0.4

 * Fixed uneven spacing above the icon and below the plugin name on the plugin thumbnail

#### 1.0.3

 * New icon
 * Added an «Upgrade to CartRules PRO» section to the description and settings page

#### 1.0.2

 * Fixed the deny/replace notice showing up blank when the restriction is enabled
   without saving the settings screen first (e.g. via WP-CLI)

#### 1.0.1

 * Fixed a settings section conflict that could occur when another CartRules plugin
   is active at the same time

#### 1.0.0

 * Initial release

## Meta

 *  Versión **1.0.4**
 *  Última actualización **hace 4 semanas**
 *  Instalaciones activas **Menos de 10**
 *  Versión de WordPress ** 6.5 o superior **
 *  Probado hasta **7.1.3**
 *  Versión de PHP ** 7.4 o superior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/cartrules-one-category-in-cart-for-woocommerce/)
 * Etiquetas:
 * [cart](https://es.wordpress.org/plugins/tags/cart/)[checkout](https://es.wordpress.org/plugins/tags/checkout/)
   [product category](https://es.wordpress.org/plugins/tags/product-category/)[restrict cart](https://es.wordpress.org/plugins/tags/restrict-cart/)
   [woocommerce](https://es.wordpress.org/plugins/tags/woocommerce/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/cartrules-one-category-in-cart-for-woocommerce/advanced/)

## Valoraciones

Aún no se han enviado valoraciones.

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

[Ver todas las reseñas](https://wordpress.org/support/plugin/cartrules-one-category-in-cart-for-woocommerce/reviews/)

## Colaboradores

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

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/cartrules-one-category-in-cart-for-woocommerce/)