> ## Documentation Index
> Fetch the complete documentation index at: https://discount.xrtotech.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Conditions: product scope, tags, and customer eligibility

> Configure quantity, subtotal, login, tags, and purchase history, and distinguish all/any conditions from native customer eligibility.

GoGoGo Discounts uses conditions to determine whether the cart and customer qualify. Select customer eligibility first, then configure conditions. Both layers must pass.

## Available conditions

| Condition | What it checks | Example |
| - | - | - |
| Cart item quantity | Total units within its scope | At least 2 in a collection |
| Cart subtotal amount | Scoped merchandise amount or cart subtotal | At least 100 |
| Customer login status | Logged-in customer or guest | Logged-in customers only |
| Customer tag | Tags on the current customer | VIP or wholesale |
| Customer segment | Selected Shopify customer group eligibility | A member of a chosen segment |
| Customer total order count | Historical number of orders | At least 3 |
| Customer total spent | Lifetime customer spending | At least 500 |

Quantity and amount comparisons support greater than or equal to, greater than, equal to, not equal to, less than, and less than or equal to. Enter money in the store currency; subtotal excludes shipping.

## All or any conditions

* **满足所有条件** (All conditions must be met): every condition passes, such as spending 100 AND having a VIP tag.
* **满足任一条件** (Any condition can be met): one passing condition is enough, such as spending 100 OR having a VIP tag. This also admits VIPs below the spending threshold.
* No conditions means no extra quantity, amount, or tag threshold, but customer eligibility, markets, and dates still apply.

## Tag groups have a separate matching mode

Enter tags in **客户标签** (Customer tag) and press Enter to add each one. Inside one tag condition, choose **满足任一标签** (Any tag) or **满足全部标签** (All tags).

To require any Black Friday tag AND a social tag, create two tag conditions, require all conditions at campaign level, and choose any/all independently inside each group. See the [Black Friday example](https://discount.xrtotech.com/en/scenarios/black-friday.md).

## Choose customer eligibility

**客户资格** (Customer eligibility) supports all customers, customer segments, or specific customers. Search specific customers by name or email and keep adding selections. Multiple segments admit a customer belonging to any selected segment. Refresh the editor after creating a new segment.

Selected markets cannot currently combine with specific customers or customer segments. Use all customers plus tag conditions where appropriate. Automatic gifts have [additional restrictions](https://discount.xrtotech.com/en/features/automatic-gifts.md).

## Test identity and scope separately

Customers with tags or history must be recognized during shopping and checkout. Test guests and signed-in customers separately for login rules. Selecting a test customer in admin does not replace checking storefront identity.

Product scope inside quantity or subtotal conditions controls qualification only. Choose discount scope independently. Customer metafields are not in the current **添加条件** (Add condition) list and are not documented as an available configuration.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.