Articles on: Scenarios

When this 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 prevent customers from adding any items other than a specific product to the cart. In this scenario we use a "Christmas Box" product. This type of limit is accomplished by setting up two limits: an inactive limit for the Christmas Box, which will be used as a rule to determine if the Christmas Box is in the cart, and a main active limit that blocks the addition of other products based on the condition set by the first limit.

Setup Process

Step 1: Create an Inactive Limit for the Christmas Box

Create a limit named "Rule: Christmas box in cart".
Set this limit to inactive.
Choose "product" as the limit type.
Check the "Force Limit" checkbox.
For the product, select the "Christmas box" product.
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 Christmas box is in cart".
Set this limit to Active.
Choose the limit type based on your preferred method to target all items other than the Christmas box (options include "Collection", "Vendor", "Product type", or "Tag"). You will need a collection, vendor, product type or tag beforehand that includes all products except the Christmas box.
In the activation rules, add a rule stating "Limit 'Rule: Christmas box in cart' is respected".
Select the appropriate collection, vendor, type, or tag that targets everything except the Christmas box.
Set the maximum quantity for this limit to 0.
Customize the "Text for maximum not respected" with an appropriate message for your customers.
Save the settings.


By following these steps, you create a conditional system where the presence of the Christmas Box in the cart triggers the activation of a limit that prevents the addition of any other products. This ensures that customers can only purchase the Christmas Box without adding other items to their cart during the promotion.

Updated on: 28/11/2023

Was this article helpful?

Share your feedback


Thank you!