> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.emailwiz.ai/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Adding & editing discount codes in emails

The **Coupon Code block** shows a discount inside an email - the offer line plus the code your customer redeems. You can attach any discount from your Shopify store, and choose between a unique code per customer or a single shared code.

---

## Editing the coupon block

Open an email in the editor and click the **Coupon Code** block. In the settings panel on the left, the **discount code search** lets you pick which discount this block uses. Start typing to find any of your Shopify discounts - your Wiz flow codes or your own.

![The Coupon Code block and its discount search in the email editor](https://storage.crisp.chat/users/helpdesk/website/-/5/b/e/f/5bef2745dfd6dc00/discount-codes-in-emails1-coup_m1ph7j.png)

You can also style the block here - the offer text, fonts, and the border and background colors of the code chip.

---

## Unique vs shared codes

Discounts come in two kinds, and the block handles both:

- **Unique (dynamic) codes** - each customer gets their own single-use code. In the editor preview these appear as a placeholder like `CODE-{DYNAMIC}`; Wiz fills in the real code for each recipient at send time. Your Wiz flow discounts work this way.

- **Static codes** - one fixed code everyone shares (for example a code you created yourself in Shopify).

Both are selected the same way - just search and pick the discount you want.

---

## Where discounts come from

The codes in this dropdown are your **Shopify discounts**. To change a discount's value, add product exclusions, or set a minimum purchase, edit it in **Shopify admin → Discounts** - see [Changing a discount](#) for the full process.