Articles on: Scenarios

Restricting Cart to a Specific Product

Must be on the Gatekeeper plan

Restricting Cart to a Specific Product



This guide explains how to prevent customers from adding any other items when a specific product is in their cart. In this example, we use a "Free Gift" product.

Steps to Complete:



Create a Collection – Add all products to the new collection, without the special gift product.
Set Up Two Limits:

Limit 1: Define a restriction for the "Free Gift" product.
Limit 2: Create a rule that blocks the addition of other products when the "Free Gift" is in the cart.

These settings ensure that customers can only check out with the "Free Gift" and no additional items.

Create a Collection:



Steps to Create a Collection in Shopify



1. Navigate to Collections In Your Shopify Admin


In the left-hand menu, click on Products > Collections.
Click Create collection.

2. Name Your Collection


Enter a name for your collection (e.g., "Free Gift Limit").
(Optional) Add a collection image to represent it.

3. Choose the Collection Type


Automated: Set conditions like "Product tag is ‘t-shirt’" or "Price is greater than $20". More automation option for larger product catalogs.
Manual: Select individual products to add.

4. Add Collection Details


Description: Provide a short description of what’s in the collection.
Collection image: Upload an image if desired.
Collection availability: Choose where the collection will be available.

5. Set Collection Conditions (for Automated Collections)


Define rules like:
Product title contains "Sneakers"
Price is greater than $50
Tag is "Bestseller"

6. Save the Collection




Creating a Limit for the Free Gift Product



Follow these steps to create a restriction for the "Free Gift" product:

Create a New Limit
Name: Example - "Free Product Maximum"*
Limit Type: Product
Limit Name: Free Gift Limit (1)
Activation Dates: Leave as is (limit takes effect immediately)
Active: Uncheck* (this limit is used to activate another rule to block additional items)


Audience Type: Everyone (or specify a target audience if needed)
Tag Exclusion: Leave blank unless excluding specific customer tags


Define the Target and Restrictions
Items to Target: Select* the Free Gift product
Set Limits:
By Quantity = (1)
Force Limit: Leave unchecked*

Quantity Limits Exclusions: Not required

Quantity Limits Texts: Enter a custom warning message


Activation Rules
Not required


Save the Limit


This ensures that customers can only add one Free Gift to their cart, without enabling it to block other products yet.

Create the Main Limit to Block Other Products



This step ensures that when the Free Gift product is in the cart, no other items can be added.

Create a New Limit



General Settings
Limit Type: Collection
Limit Name: Block Cart when Free Gift is in Cart*
Activation Dates: Leave as is (limit takes effect immediately)
Active: ✔️ (Check this box to activate the limit)

Audience Type: Everyone
Tag Exclusion: Leave blank


Define Target and Restrictions
Items to Target: Select the Free Gift collection (created in Step 1)
Set Limits:
By Quantity: Set Maximum Collection Quantity* to 0 (prevents adding other products)
Force Limit: Leave unchecked*


Additional Settings
Quantity Limits Exclusions: Not required

Quantity Limits Texts: Enter a custom warning message


Set Activation Rule
Limit: Select the Free Gift Limit* created in Step 1
Condition: Is Respected*


Save the Limit

Result




Updated on: 02/04/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!