# Discount Code

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

<figure><img src="/files/7Do1acawf4b9R1SPXsQ1" 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="/files/uP3Y473II9Q8avKSdqKU" 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="/files/Oyz2OYEgxr8xWHt2l4T7" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.smind.io/guides/cart-drawer/discount-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
