Product alerts
Customers can subscribe to two types of alerts by email - price change alerts and in-stock alerts. For each type of alert, you can determine if customers are able to subscribe, select the email template that is used, and identify the sender of the email.
Price change alerts
When price change alerts are enabled, a Notify me when the price drops link appears on every product page. Customers can click the link to subscribe to alerts related to the product. Guests are prompted to open an account with your store. Whenever the price changes or the product goes on special, everyone who has subscribed to the alert receives an email alert.
In-Stock alerts
The in-stock alert creates a link called Notify me when this product is in stock for every product that is out of stock. Customers can click the link to subscribe to the alert. When the product is back in stock, customers receive an email notification that the product is available. Products with alerts have a Product Alerts tab in the Product Information panel that lists the customers who have subscribed to an alert.
Set up product alerts
-
On the Admin sidebar, go to Stores > Settings > Configuration.
-
In the left panel, expand Catalog and choose Catalog underneath.
-
Click to expand the Product Alerts section and do the following:
img-md w-600 modal-image -
To offer price change alerts to your customers, set Allow Alert When Product Price Changes to
Yes
. -
Set Price Alert Email Template to the template that you want to use for the price alert notifications.
-
To offer alerts when out-of-stock products become available again, set Allow Alert When Product Comes Back in Stock to
Yes
.note note NOTE The Notify me when this product is in stock message appears only when Display Out of Stock Products is set to Yes
(in the Configuration at Catalog > Inventory). -
Set Stock Alert Email Template to the template that you want to use for product stock alerts.
-
Set Alert Email Sender to the store contact that you want to appear as the sender of the email alert. Learn more about store email addresses in the core user guide.
-
-
When complete, click Save Config.
Configure product alerts email templates
Next, configure, add, or modify the email template for your price alert. You may want to edit your price alert configurations after creating additional templates.
For more detailed information about using email messaging, see Message Templates in the Admin Systems Guide.
-
On the Admin sidebar, go to Marketing > Communications > Email Templates.
-
Click Add New Template.
-
Under Load default template, choose the Template that you want to customize.
You might choose the alert template included with your theme. Or you can select the
Price Alert
orStock Alert
templates under Magento_PriceAlert. -
Click Load Template.
-
Enter a Template Name.
You can select this name in the Price Alerts configuration.
-
Read through the existing content and make changes as needed for the following:
table 0-row-2 1-row-2 2-row-2 Field Description Template Subject This text is displayed in the subject line of an email. Template Content This text is displayed in the full content of the sent email. -
To add generated information from Commerce data, use the Insert Variable option to use a list of available variables.
-
Click Save Template.
Product Alert Run Settings
These settings allow you to select how often Commerce checks for changes that require alerts to be sent. You can also select the recipient, sender, and template for emails that are sent if the sending of alerts fails.
-
On the Admin sidebar, go to Stores > Settings > Configuration.
-
In the left panel, expand Catalog and choose Catalog underneath.
-
Expand the Product Alerts Run Settings section.
-
To determine how often product alerts are sent, set Frequency to one of the following:
Daily
Weekly
Monthly
-
To determine the time of day product alerts are sent, set Start Time to the hour, minute, and second.
note note NOTE Product alerts are sent by the “product_alert” consumer. -
For Error Email Recipient, enter the email of the person to be contacted if an error occurs.
-
For the Error Email Sender, select the store identity that appears as the sender of the error notification.
-
Set Error Email Template to the transactional email template to be used for the error notification.
-
When complete, click Save Config.