Back to Magento2

Magento_ProductAlert module

app/code/Magento/ProductAlert/README.md

2.4.82.2 KB
Original Source

Magento_ProductAlert module

This module enables product alerts, which allow customers to sign up for emails about product price or stock status changes.

Installation

Before installing this module, note that this module is dependent on the following modules:

  • Magento_Catalog
  • Magento_Customer

The Magento_ProductAlert module creates the following tables in the database:

  • product_alert_price
  • product_alert_stock

All database schema changes made by this module are rolled back when the module gets disabled and setup:upgrade command is run.

The Magento_ProductAlert module contains the recurring script. The script's modifications don't need to be manually reverted upon uninstallation.

For information about a module installation, see Enable or disable modules.

Extensibility

Extension developers can interact with the Magento_ProductAlert module. For more information about the extension mechanism, see Plugins.

The dependency injection mechanism enables you to override the functionality of the Magento_ProductAlert module.

Layouts

This module introduces the following layouts in the view/frontend/layout directory:

  • catalog_product_view
  • productalert_unsubscribe_email

For more information about a layout, see the Layout documentation.

Additional information

You can get more information at the following articles:

Cron options

Cron group configuration can be set at etc/crontab.xml:

  • catalog_product_alert - send product alerts to customers.

Learn how to configure and run cron.