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:


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


  • Limit 1: Define a rule limit that detects when a "Free Gift" product is in cart.
  • Limit 2: Create a rule that blocks all 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., "Non Free Gift Products").


3. Set the Collection Rules

  • Set a collection condition like "Tag does not include ‘free-gift’" (or any rule that would target all other products than the free gift).
  • Make sure your free gift product is tagged.
  • Make sure the collection is available on the online store sales channel.


4. Save the Collection



Creating a Limit for the Free Gift Product


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


  1. Create a New Limit to Detect When a "Free Gift" is in cart
  • Name: Example - "Rule: Free gift is in cart"
  • Limit Type: Product
  • Activation Dates: Decide when the limit should be active
  • Active: Uncheck (this limit will be used as a rule so we can keep it inactive so that it doesn't affect the cart)


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


  1. Define the Target and Restrictions
  • Items to Target: Select the Free Gift product
  • Set Limits:
    • By Quantity: Minimum product quantity = 1
    • Force Limit: Checked

  • Quantity Limits Exclusions: Not required

  • Quantity Limits Texts: Enter a custom warning message


  1. Activation Rules
  • Not required


  1. 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 to Block Other Products


  1. General Settings
  • Limit Type: Collection
  • Limit Name: Block Cart when Free Gift is in Cart
  • Activation Dates: Decide when the limit should be active
  • Active: ✔️ (Check this box to activate the limit)

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


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


  1. Additional Settings
  • Quantity Limits Exclusions: Not required

  • Quantity Limits Texts: Enter a custom warning message


  1. Set Activation Rule
  • Add a rule and select the type "Limit"
  • Limit: Select the "Rule: Free gift is in cart" limit created in Step 1
  • Condition: Is Respected


  1. Save the Limit


Result


Updated on: 16/09/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!