> For the complete documentation index, see [llms.txt](https://accelio.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://accelio.gitbook.io/docs/cart-elements/footer/discount-code.md). Agents can also search and read this documentation through its [MCP server](https://accelio.gitbook.io/docs/~gitbook/mcp).

# Discount code

Enable a field for shoppers to enter discount codes directly in the drawer.

Add a discount code input to the Footer so shoppers can apply promo codes before checkout. Open **Cart elements > Footer > Discount code**.

<figure><img src="https://153490188-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtXnqreLUgTLePYs0qjMq%2Fuploads%2FqLEa34IMgRQigtZlG9iJ%2Fimage.png?alt=media&amp;token=e4d24bba-e4dc-4c74-b938-543f5769cc20" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Discount codes must be created in your **Shopify admin** (Discounts). Accelio only displays the input field and applies the code, it doesn’t create or validate discount rules.
{% endhint %}

### 1. Settings

<figure><img src="https://153490188-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtXnqreLUgTLePYs0qjMq%2Fuploads%2FkFYFqDA2qgSo6IBLHNOw%2Fimage.png?alt=media&amp;token=46beca3e-7ce5-48ff-8663-dcaedd9eab8c" alt=""><figcaption></figcaption></figure>

* **Turn on Discount code:** toggle on or off. When off, the field is hidden but your settings are kept.
* **Label:** the clickable text that opens the field (e.g. `Add discount code`).
* **Placeholder:** the hint text inside the empty field (e.g. `Add code`).
* **Button style:** Filled bold, Filled light, or Outline.
* **Button label:** the text on the apply button. Default: `Apply`.

### 2. Color

<figure><img src="https://153490188-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtXnqreLUgTLePYs0qjMq%2Fuploads%2F6MZigRVbKC5RwnXP1tFj%2Fimage.png?alt=media&amp;token=645ac6f5-accf-438c-9547-d77160b5a29b" alt=""><figcaption></figcaption></figure>

Set colors for the discount code field:

* **Label color:** the clickable Label text.
* **Button color:** the Apply button background. Supports **Set gradient**.
* **Button text:** the Apply button label.
* **Discount tag color:** background of the applied code tag (shown after a shopper applies a code).
* **Discount tag text:** the applied code text and the ✕ remove icon.

### Need help?

If you need any assistance, reach out to our support team via **live chat** inside the Accelio app.
