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.

Sign up for a product alert {width="600" modal="regular"}

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.

List of product and price alert subscriptions {width="600" modal="regular"}

Set up product alerts

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel, expand Catalog and choose Catalog underneath.

  3. Click to expand the Product Alerts section and do the following:

    Product Alerts {width="600" modal="regular"}

    • 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.

  4. 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.

  1. On the Admin sidebar, go to Marketing > Communications > Email Templates.

  2. Click Add New Template.

  3. 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 or Stock Alert templates under Magento_PriceAlert.

  4. Click Load Template.

  5. Enter a Template Name.

    You can select this name in the Price Alerts configuration.

  6. 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.
  7. To add generated information from Commerce data, use the Insert Variable option to use a list of available variables.

  8. 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.

Product Alert Run Settings {width="600" modal="regular"}

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel, expand Catalog and choose Catalog underneath.

  3. Expand Expansion selector the Product Alerts Run Settings section.

  4. To determine how often product alerts are sent, set Frequency to one of the following:

    • Daily
    • Weekly
    • Monthly
  5. 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.
  6. For Error Email Recipient, enter the email of the person to be contacted if an error occurs.

  7. For the Error Email Sender, select the store identity that appears as the sender of the error notification.

  8. Set Error Email Template to the transactional email template to be used for the error notification.

  9. When complete, click Save Config.

recommendation-more-help
c1792860-ac60-428b-ad4b-59517d4ea712