> For the complete documentation index, see [llms.txt](https://docs.smind.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smind.io/guides/cart-drawer/discount-code.md).

# Discount Code

Enables promotion code entry in the cart for a smoother and more incentives driven checkout experiences.

<figure><img src="https://2195890312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRi1aohY8I4BPjjvC9cH%2Fuploads%2FVnRo90sV6aGkNRzj4Zos%2FDiscount%20Code%20(1).jpg?alt=media&amp;token=856f8541-fa35-4b88-933b-0e6f01b3a21b" alt=""><figcaption></figcaption></figure>

## **Key Features**

* Apply Discount Code Instantly: Lets customers instantly validate and apply their code, no page reload.

## Benefits

* Reduces Friction: The customers don’t have to hunt for the cart or checkout page, so they can enter the codes in-drawer that keeps the flow seamless.
* Improves UX on Mobile: A large, touch-friendly input in the drawer is simpler than scrolling a full cart page on small screens.

## How To Use?

1. Click **Add Block**
2. Choose **Discount Code**

<figure><img src="https://2195890312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRi1aohY8I4BPjjvC9cH%2Fuploads%2FUa70GFYPJ4Y2wPWkvh5v%2FDiscount%20Code%201.jpg?alt=media&amp;token=a405881f-e2d4-476a-83e7-3ef1fa538297" alt=""><figcaption></figcaption></figure>

3. Create a discount code on the Shopify Admin, to add the discount code go to **Discount > Create Discount**. [Click here to learn more about it](https://help.shopify.com/en/manual/discounts/discount-types/percentage-fixed-amount#create-a-fixed-value-or-percentage-discount)

<figure><img src="https://2195890312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRi1aohY8I4BPjjvC9cH%2Fuploads%2FRDQUNUnX69Q83d7SzVD7%2FDiscount%20Code%202.jpg?alt=media&amp;token=132f5bcb-8ce2-44fc-9581-7921218cc36d" alt=""><figcaption></figcaption></figure>
