# Auto add gift at checkout

The **Auto Add Gift** feature automatically adds free products to a customer’s cart when predefined conditions are met. This is fully automated—customers don’t need to take any action to receive the gift.

{% embed url="<https://dollarlabs.neetorecord.com/watch/a8ac53a225933ba6fb7d>" %}

***

#### Requirements

* Available only for **Shopify Plus** stores
* Requires adding the **Auto Add Gift Pro block** in the checkout editor
* Must be configured inside the Dollar Labs Discount app

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2Fc24xOqZnz30wMyd45nnB%2Fimage.png?alt=media&#x26;token=2f54c6a5-8d82-4a47-a37c-45d5a842663a" alt="" width="375"><figcaption></figcaption></figure>

***

#### Setup Steps

**1. Enable Checkout Extension Block**

* Go to **Theme Editor → Checkout**
* Add the **Auto Add Gift Pro block**
* Save your changes

This block controls all logic related to automatic gift addition and removal.

***

**2. Create an Auto Add Gift Offer**

* Open the app → **Checkout Extensions → Create**
* Select **Auto Add Gift mode**

***

#### Trigger Options

You can define when the system should evaluate conditions:

1. **Discount Code Applied**
   * Gift is added only if the discount code is valid and conditions are met
2. **Automatic (No Discount Code)**
   * Gift is added directly when cart conditions are satisfied
3. **Customer Birthday**
   * Gift is triggered when the customer’s birthday matches (via metafield)

***

#### Condition Examples

You can define rules such as:

* Minimum cart quantity (e.g., ≥ 10 items)
* Minimum cart subtotal (e.g., ≥ ₹10,000)

If conditions are not met:

* Discount will show as **“not applicable”**
* Gift will not be added

***

#### What Happens at Checkout

When conditions are met:

* Free gift is automatically added to the cart
* A confirmation message (toast/banner) is displayed

When conditions are not met:

* No gift is added
* Discount may still appear invalid

***

#### Customization Options

You can configure:

* **Gift message** (line item text)
* **Banner title** (e.g., “Free Gift”)
* **Banner description** (reason for reward)

***

#### Key Benefits

* Fully automated gifting
* No customer interaction required
* Supports advanced conditional logic
