> For the complete documentation index, see [llms.txt](https://magecomp.gitbook.io/shopify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magecomp.gitbook.io/shopify/apps/quo-volume-discount-tier-price/buy-x-get-y-discount.md).

# Buy X Get Y Discount

To apply this feature, first **click on the “Create Buy X Get Y Discount” button**. Then, follow the steps to set up your discount campaign.

<figure><img src="/files/2mVyxXKxYYIXXrM3ZWD9" alt=""><figcaption></figcaption></figure>

#### Steps to Create a Buy X Get Y Discount

1. **Discount Title**\
   Enter a name for your discount campaign. This helps you identify it easily in your dashboard.
2. **Start Date & End Date**
   * **Start Date**: Select the date when the discount will begin (dd-mm-yyyy).
   * **End Date**: Select the date when the discount will end (dd-mm-yyyy).
3. **Limit Number**
   * Set the total number of times this discount can be used across all customers.
   * Optionally, **limit to one use per customer lifetime** to prevent repeated use by the same customer.
4. **Customer Buys**\
   Define the purchase conditions required to trigger the discount:
   * **Min Quantity**: Minimum number of items the customer needs to buy.
   * **Min Amount**: Minimum total purchase amount required.
   * **Select Buy Type**: Choose whether the condition applies to **Specific Products**.
   * **Select Buy Products**: Pick the products that must be purchased to qualify.

<figure><img src="/files/L1vFT5yre0H8AIamoSYS" alt=""><figcaption></figcaption></figure>

5. **Customer Gets**\
   Define what the customer receives when the conditions are met:

* **Select Get Type**: Choose whether the reward applies to **Specific Products**.
* **Select Get Products**: Pick the products the customer will receive as part of the promotion.

<figure><img src="/files/SCcEsNmQrlwgLF6h4hs2" alt=""><figcaption></figcaption></figure>

You can also **preview the campaign details** beside the fields. Once all fields are configured, **save your campaign**. The discount will automatically activate according to the start and end dates you’ve set.

<figure><img src="/files/C4yLFezQwagecjhIvsGM" alt=""><figcaption></figcaption></figure>

#### **Customize Settings – Buy X Get Y Discount**

Visit the customize section to control how the *Buy X Get Y Discount* card appears in your app. These settings allow you to adjust text, colors, spacing, and overall design to match your store theme.

**1. Title Name**

* Enter the heading you want to show above the discount card.
* Default example: **Buy X Get Y Discount**

**2. Title Text**

* This text appears as the main title above the offer card.
* You can customize it to match your campaign message.

**3. Title Color**

* Select the color for the title text.
* Example: `#000000`

**4. Title Bold**

* Set the font-weight of the title.
* Example: **600** for semi-bold.

**5. Image Padding**

* Controls the spacing around the discount image (if any).
* Example: **20**

**6. Card Text Size**

* Adjust the font size for the text inside the discount card.
* Example: **15**

**7. Card Text Color**

* Choose the color of the text inside the card.
* Example: `#000000`

**8. Background Color**

* Set the background color of the discount card.
* Example: `#ffffff`

**9. Border Style**

* Choose the border type for the card.
* Available options:
  * **Solid**
  * (Other border styles if available)

**10. Border Color**

* Select the color for the border of the card.
* Example: #00000

<figure><img src="/files/Lq9bBCxThXVoEevyVAZl" alt=""><figcaption></figcaption></figure>

Once you configure the settings, the preview will lets you visualize how the discount card will look before publishing it in your store.
