Additional Settings for Trigger Emails - EN documentation - REES46 Manual
Page tree
Skip to end of metadata
Go to start of metadata

 This topic explains how to set up REES46 Triggered Emails feature.

This page covers the following


Trigger Scenario "Back In Stock"

"Back in Stock" is an automated email sent to the customers, who subscribed to the product availability updates. Time: when the product is back in stock.


Launch requirementsMandatory?
Email Subscription Form
Yes
Subscription Button
Yes


For the user to be able to subscribe to product availability status updates, you must either edit Product Detail Page template via the built-in HTML/CSS editor or add a new section. Template name:

product.liquid (product-template.liquid)

Embed this code at the part of the template where you want to see the Subscription Button (Button will be visible on out-of-stock products pages too) or add a new section (if your theme allows it):

product.liquid
<!-- REES46: subscribe to product availability start -->
{% if product %}{% unless product.available %}
<style>
#r46_subscribe_available {
    display: inline-block;
    font-family: Helvetica;
    border-radius: 2px;
    background-color: #43b656;
    border: #43b656;
    color: #fff;
    padding: 5px 10px;
    font-size: 16px;
    margin-bottom: 10px;
}
</style>
<button id="r46_subscribe_available" data-id="{{ product.id }}">Back in stock notice</button>
{% endunless %}{% endif %}
<!-- REES46: subscribe to product availability end -->

Trigger Scenario "Price Drop"

 "Price Drop" is an automated email sent to the customers, who subscribed to the price drop updates. Time: when the product has lowered in price.


Launch requirementsMandatory?
Email Subscription Form
Yes
Subscription Button
Yes


For the user to be able to subscribe to price drop updates, you must either edit Product Detail Page template via the built-in HTML/CSS editor or add a new section. Template name:

 product.liquid (product-template.liquid)

Embed this code at the part of the template where you want to see the Subscription Button (button will be visible on all product pages) or add a new section (if your theme allows it):

product.liquid
<!-- REES46: subscribe to product price drop start -->
{% if product %}{% if product.available %}
<style>
#r46_subscribe_price_drop {
 display: inline-block;
 font-family: Helvetica;
 border-radius: 2px;
 background-color: #43b656;
 border: #43b656;
 color: #fff;
 padding: 5px 10px;
 font-size: 16px;
 margin-bottom: 10px;
}
</style>
<button id="r46_subscribe_price_drop" data-id="{{ product.id }}" data-price="{{ product.price | money_without_currency }}">Price drop notice</button>
{% endif %}{% endif %}
<!-- REES46: subscribe to product price drop end -->

Return to the top of the page | Proceed to the next page

Table of Contents

  • No labels