How to Configure Back in Stock Alert Emails

read
Last updated at:

Overview

When creating a back in stock flow email, it's important to set up the message so that it shows the right product data. In this article, we show you how to use pre-built templates or configure a custom template for a back in stock flow email. Note that Klaviyo supports back in stock flows only for Shopify and BigCommerce store, and the instructions below only cover these integrations. 

Use Pre-Built Templates

The pre-built back in stock flows you'll find in the Flow Library come configured with default email content. If you've built your own flow, to help get you started, you will find a pre-built back in stock email template in the Template Library. Simply search "back in stock" when configuring your stock alert email.

Create Your Own Back in Stock Email

To configure your email content, you will need to use a specific set of dynamic event variables. Given it may be days, weeks, or even months before an item is restocked, we realize that details about the item (for example, images or price) may change. For this reason, Klaviyo uses a special set of dynamic event variables for this email that will look up the restocked product in your catalog at send time and populate the most up-to-date details available.

Note that the table block within the email template must be set to static, not dynamic, in order to function.

Shopify Stores

Product Detail Dynamic Event Variable (Shopify Stores)
Product Title {% catalog event.VariantId integration='shopify' %} {{ catalog_item.title }} {% endcatalog %}
Product URL {% catalog event.VariantId integration='shopify' %}{{ catalog_item.url }}{% endcatalog %}
Product Price {% catalog event.VariantId integration='shopify' %}{% currency_format catalog_item.metadata.price|floatformat:2 %}{% endcatalog %}
Variant Image {% catalog event.VariantId integration='shopify' %} {{ catalog_item.variant.featured_image.full.src|default:catalog_item.featured_image.full.src }} {% endcatalog %}
Variant Title {% catalog event.VariantId integration="shopify" %} {{ catalog_item.variant.title }} {% endcatalog %}
Variant URL {% catalog event.VariantId integration='shopify' %}{{ catalog_item.url }}?variant={{ catalog_item.variant.id }}{% endcatalog %}

BigCommerce Stores

Product Detail Dynamic Event Variable (BigCommerce Stores)
Product Title {% catalog event.VariantId integration='bigcommerce' %} {{ catalog_item.title }} {% endcatalog %}
Product URL {% catalog event.VariantId integration='bigcommerce' %}{{ catalog_item.url }}{% endcatalog %}
Product Price {% catalog event.VariantId integration='bigcommerce' %}{% currency_format catalog_item.metadata.price|floatformat:2 %}{% endcatalog %}
Variant Image {% catalog event.VariantId integration='bigcommerce' %} {{ catalog_item.variant.featured_image.full.src|default:catalog_item.featured_image.full.src }} {% endcatalog %}
Variant Title {% catalog event.VariantId integration="bigcommerce" %} {{ catalog_item.variant.title }} {% endcatalog %}
Variant URL {% catalog event.VariantId integration='bigcommerce' %}{{ catalog_item.url }}?variant={{ catalog_item.variant.id }}{% endcatalog %}

Example

Here's what a template will look like inside the Template Builder with dynamic event variables, with a comparison of what this same template will look like when previewed with real event data:

BiS_Template.png

Additional Resources

Check out other articles on back in stock flows

Learn more about dynamic variables in Personalize Flow Emails with Dynamic Event Data

 

 

x
Was this article helpful?
1 out of 1 found this helpful