> ## 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.

# Gift scenario: spend 100, receive one automatic gift

> Configure a fixed reward for a cart subtotal of 100, enable the theme embed, and test gift addition, removal, availability, and free pricing.

Use automatic gifts to add one fixed gift when purchased merchandise reaches 100. Start with an available nonsubscription variant in the ordinary Online Store cart.

## Example settings

| Setting | Example value |
| - | - |
| Rule | Automatic gift |
| Selection mode | Fixed gift |
| Gift quantity per order | 1 |
| Condition | Cart subtotal greater than or equal to 100 |
| Markets and customer eligibility | All markets and all customers |
| Theme embed | Enabled and saved in the current theme |

## Configuration steps

1. Add **购物车小计金额** (Cart subtotal) with **大于或等于** (Greater than or equal to) and value `100`.
2. Add **自动赠品** (Automatic gift), choose **指定赠品** (Fixed gift), select a variant, and enter quantity `1`.
3. Click **一键配置嵌入应用** (Configure app embed) and **保存** (Save) in the theme editor.
4. Save and activate the campaign. The app handles the automatic method and rule selection.
5. Reach 100 in the ordinary cart, reduce purchased items below the threshold, and verify the gift is free at ordinary checkout when eligible.

## Checkout acceptance tests

| Test | Expected result |
| - | - |
| Purchased merchandise 99 | No gift |
| Purchased merchandise 100 | Automatically add 1 gift |
| Reduce purchases below 100 | Remove the system gift |
| Refresh or repeat cart requests | No duplicates |
| Gift unavailable | No paid gift is added |
| Threshold reached only by including gift value | Gift value does not qualify the cart |

For random selection, choose **随机抽选** and at least two candidate variants. Read [automatic gifts](https://discount.xrtotech.com/en/features/automatic-gifts.md) for supported conditions and express checkout limits.

Then complete the [launch checklist](https://discount.xrtotech.com/en/getting-started/launch-checklist.md). Example amounts use the store currency; shipping and taxes are separate.


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