> ## Documentation Index
> Fetch the complete documentation index at: https://codebeans-gift-registry.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Email templates

> Edit the subject and content of each email, preview it and send a test.

> [!NOTE]
>
> The template editor is part of the **Professional** plan and higher.

## Open a template

![The template editor with Subject, Content, Preview, Reset to default, Save Template and the Liquid variables sidebar](https://mintcdn.com/codebeans-gift-registry/_ZMCspP1MAsFbArs/images/template-editor.png?fit=max\&auto=format\&n=_ZMCspP1MAsFbArs\&q=85\&s=c2351841bef033fd04b867c0a57ccedf)

Go to **Settings → Customer Notifications** (or **Admin Notifications**) and click a template under **Customer Email Templates** or **Admin Email Templates**.

The editor has:

* **Subject**: the email's subject line;
* **Content**: the email's HTML;
* **Preview**: shows the email with sample data, including changes you haven't saved yet;
* **Reset to default**: puts the original template back in the editor. Click **Save Template** to keep it.

Click **Save Template** in the save bar to save your changes.

> [!TIP]
>
> If you never change a template, you automatically get our improvements to the default version.

## Variables

Variables are replaced with real values when the email is sent. Click a variable in the **Liquid variables** sidebar to copy it.

| Variable | Value |
| - | - |
| `{{registrant_name}}` | Registry owner's name |
| `{{registry_name}}` | Registry name |
| `{{event_type}}` | Event type |
| `{{event_date}}` | Event date, in your [date format](https://codebeans-gift-registry.mintlify.site/settings/general.md#date-format) |
| `{{share_link}}` | Link to the registry |
| `{{product_list}}` | The registry's products, or the products bought |
| `{{buyer_name}}` | Gift buyer's name, or "Anonymous" |
| `{{order_name}}` | Order number |
| `{{message}}` | The owner's message |
| `{{total_purchased_week}}`, `{{total_sales_week}}` | Gifts bought and sales this week (weekly summaries) |
| `{{total_items_purchased}}`, `{{total_items_remaining}}` | Items bought and still needed (weekly summaries) |
| `{{registrant_email}}`, `{{co_registrant_name}}`, `{{co_registrant_email}}` | Owner and co-registrant details (admin emails) |
| `{{shop.name}}` | Your store's myshopify.com address |
| `{{shop.email}}` | Your store's email address |
| `{{shop.logo}}` | Your email logo |
| `{{shop.primary_color}}`, `{{shop.primary_bg_color}}`, `{{shop.secondary_color}}`, `{{shop.secondary_bg_color}}` | Your [brand colours](https://codebeans-gift-registry.mintlify.site/emails/branding-and-reminders.md) |

Each template's sidebar lists the variables available for that email.

### Show content only when a value exists

Wrap content in these comments to show it only when a value is set, or only when it isn't:

```html theme={null}
<!-- IF shop.logo -->
  <img src="{{shop.logo}}" alt="Logo" height="60">
<!-- ENDIF -->

<!-- IF_NOT message -->
  <p>No message was added.</p>
<!-- ENDIF_NOT -->
```

> [!NOTE]
>
> Templates use simple `{{variable}}` placeholders, not full Shopify Liquid. Filters and loops such as `{{ x | upcase }}` or `{% for %}` are not supported.

## Send a test email

In the **Test Email** card, enter a **Recipient Email** and click **Send Test Email**. The test uses the current subject and content, including unsaved changes, with sample data.

A test email counts toward your plan's [email limit](https://codebeans-gift-registry.mintlify.site/emails/overview.md#email-limits).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.