# Discount code

{% hint style="success" %}
Available in v1.5.0 and later
{% endhint %}

<figure><img src="https://3146423938-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZQuVfmt0J7tzTvfBqG6C%2Fuploads%2FTcmGWZgrnuRGO39kA6j7%2Fdiscount-code.webp?alt=media&#x26;token=d5267e79-b783-48e6-b3b1-840efd4d9346" alt=""><figcaption><p>Discount code in a Image hotspot section.</p></figcaption></figure>

This component only takes care of the front-end function of the discount code. A valid discount code must be set in the [Shopify Admin](https://help.shopify.com/en/manual/discounts) before this field can be displayed. Shipping-related discount codes cannot be set before the checkout step, so make sure that your discount code is for the order price, not for shipping. The discount code cannot be applied to empty carts.

### Block settings

* **Discount Code**: Enter the discount code here.
