Articles on: Scenarios

When an item from this group of item is in cart, restrict everything else


In this scenario, we leverage the MinCart "Activation rules" feature of the "Gatekeeper" plan. The goal is to detect when a specific group of item is in cart and then limit the whole cart quantity to 1 so that these items can only be bought alone. This type of limit is accomplished by setting up two limits: an inactive limit to detect when any items from the group is in cart, which will be used as a rule, and a main active limit that sets a maximum quantity to 1 for the whole cart when the limit rules detect an item from the group.

Setup Process

Step 1: Create an Inactive Limit for the items that triggers the limit

Create a limit named "Rule: Special item in cart".
Set this limit to inactive.
Choose "Collection" or "Tag" for the limit type. (Select the one you'd prefer to use to group your special items)
Check the "Force Limit" checkbox.
For the collection or tag target, select the collection or tag that targets your group of items.
Set the minimum quantity to 1.
Save this limit.

Step 2: Create the Main Limit to Block Other Products

Create another limit named "Block cart when special item is in cart".
Set this limit to Active.
Choose the "Whole cart" limit type.
In the activation rules, add a rule and select the 'limit' rule type, select the limit previously created "Rule: Special item in cart" and set the condition to "Is respected".
Set the maximum quantity for this limit to 1.
Customize the "Text for maximum not respected" with an appropriate message for your customers that explains why they cannot add other items.
Save the settings.


By following these steps, you create a conditional system where the presence of any special item in the cart triggers the activation of a limit that prevents having more than 1 quantity total in your cart, preventing the addition of any other products. This ensures that customers cannot mix other items with these special items in their cart.

Updated on: 12/02/2024

Was this article helpful?

Share your feedback


Thank you!