# Coupon codes

When using the newsletter popups in Broadcast, a coupon code can be displayed for your customer after they successfully enter their email address:

Large newsletter:

![Success message with coupon code appears after sign-up](https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/V59u5DL8TedzFesJ0kTt/Screen%20Shot%202022-07-26%20at%209.53.42%20AM%20copy.png)

Small newsletter:

![Small newsletter replaces original message with success message](https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/UGPMxeixniwhW7fFDtXc/Screen%20Shot%202022-07-26%20at%209.58.53%20AM.png)

## How to setup

There are two newsletter styles in Broadcast.

A Large newsletter block which uses a modal window popup and has the ability to show an image or a Small newsletter block which is a minimal design and retains sticky.

We will cover the steps for both below.

### Large newsletter

The Large newsletter uses the Language editor to manage the success message. This is especially helpful if your store is supporting multiple languages.

Steps:

In the Theme Editor, add the Large newsletter block under Popups:

![Bottom of the Theme Editor](https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/EmkUwNpgw3bfckdXOQXH/Kapture%202022-07-26%20at%2012.32.45.gif)

Configure the block settings to design your newsletter popup:

![](https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/NtpOtFzA6CoAMzTu5AqJ/Screen%20Shot%202022-07-26%20at%2012.35.04%20PM.png)

To configure the success message and include the Coupon Code, use the Language editor (Edit default theme content).

You can open the Language Editor by clicking on the 3-dot ellipsis icon at the top of Theme Editor:

<figure><img src="https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/Jccknjw42AioP8MMWr0j/edit-dtc.jpg" alt=""><figcaption></figcaption></figure>

In the Language Editor, type in `newsletter` in the filter/search box and find this section:

![Thank you with code html](https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/XBNr52xbH2zrWzX8MISy/Screen%20Shot%202022-07-26%20at%2012.45.01%20PM%20copy.png)

Here you can customize the success message and include your Coupon Code.

if you use the `<span>Coupon Code</span>` format, the information inside the span tags will be styled to highlight the code in your message:

![The \<span> tags will style your code with a dashed outline](https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/X2WKjwLvL6B1MN5a9kVm/Screen%20Shot%202022-07-26%20at%209.53.42%20AM.png)

### Small newsletter

The smaller newsletter uses very little space on the screen and can be positioned in various locations on the screen. The success message is configured right in the block settings.

Steps:

In the Theme Editor, add the Small newsletter block under Popups:

![Bottom of the Theme Editor](https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/ViCpHe3kpDK39YCXrm6H/Kapture%202022-07-26%20at%2010.48.46.gif)

In the block settings, add the initial text that will be displayed to your customer under Heading. Then add the coupon code under 'Success message':

![](https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/9g5tidbnaHVgIDY5EEob/Screen%20Shot%202022-07-26%20at%209.58.05%20AM.png)

Use the additional settings to customize the look and behavior of the popup:

![](https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/mT208DXSXLKs6oxXNS2O/Screen%20Shot%202022-07-26%20at%2011.10.15%20AM.png)

#### Order of action

The Heading text is displayed first:

![](https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/DBBFwxF2D999zBXjORRq/Screen%20Shot%202022-07-26%20at%2010.41.42%20AM.png)

Customers can click on the popup and enter their email address:

![](https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/akpTZyLEAEXYDGDopclA/Kapture%202022-07-26%20at%2011.02.57.gif)

the success message is displayed afterward:

![](https://content.gitbook.com/content/j8jzXN4KKXAfQhgbN5lO/blobs/UGPMxeixniwhW7fFDtXc/Screen%20Shot%202022-07-26%20at%209.58.53%20AM.png)

Customers can copy the instant Coupon Code for immediate or future use based on the type of coupon code you've created.

{% hint style="info" %}
**Note:** Broadcast does not create promotions or codes. Refer to your Shopify admin settings to find the Discounts tab and set up your coupon codes and automated promotions.
{% endhint %}


---

# 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://broadcast.presidiocreative.com/broadcast-v5/overlay/popups/coupon-codes.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.
