> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://regiostech.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Number of Uniques

This article explains the **"Number of Uniques"** concept and how to use it to create advanced discounts based on how many *different* products, variants, or collections are in the cart.

 [![](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_h8muup.png)](https://loom.com/share/b4b0dc3d3f73484e96c6743fc17f9875)

📽️ Click the thumbnail above to watch a video demonstration.

## What is “Number of Uniques”?

“Number of Uniques” is a **number term** you can use inside conditions like:

* **Compare Numbers**
* **Calculation**

It returns the number of **distinct items** in the cart—based on products, variants, or collections.

## Common Use Cases

* “Buy 3 different products from a collection”
* “Buy 2 or more distinct variants of the same product”
* “Get a discount if the cart includes items from 3 or more collections”

## How to Use It

### 1. Add a New Condition

![Screenshot of a "Compare numbers" condition using "Number of uniques"](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_1r6twp5.png)

* In the **Logic Builder**, click **Add Criteria**
* Choose **Number of unique products**, **Number of unique variants**, or **Number of unique collections**.

This will create either a **Compare Numbers** or **Calculation** condition.

### 2. Use “Number of Uniques” as the "Compare this number"

Select among:
* Number of unique products
* Number of unique variants in cart
* Number of unique collections in cart

#### Example
Let’s say you have:
* A product named Shoe with Red, Blue, and Green variants
* And 1 x Red, 1 x Blue, 1 x Green in the cart

Values:
* Number of unique products = 1
* Number of unique variants = 3

### 3. Set "To this Number"

* Compare it to a constant (e.g., `>= 3`)
* Or use a variable from elsewhere in your logic

## Notes

* “Unique” means distinct **product IDs**, **variant IDs**, or **collection IDs**
* Quantity doesn’t matter—3 of the same product counts as **1 unique**
* Use this to build flexible logic that prevents edge cases like stacking discounts for buying multiples of a single item

## Example Use Cases

### 1. Give 20% discount when a customer adds 1 or 2 or 3 unique products from a specific collection.

![Example logic for 20% discount on 1 or 2 or 3 unique products](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_fqlrjv.png)






## Your Feedback Matters

Your review helps keep this small business running. Please [leave one](https://apps.shopify.com/regios-automatic-discounts#modal-show=ReviewListingModal) on the Shopify App Store.