Data
Magento\ProductAlert\Helper\Data
What it does
This helper class provides utility methods for managing product alert functionality in Magento 2, including price drop alerts and stock availability notifications.
Developers use it to retrieve product instances, generate subscription URLs, check if alerts are enabled in configuration, and create alert-related UI blocks.
It serves as the central helper for implementing customer notification features when products become available or prices change.
Public Methods
- getProduct()
- setProduct()
- getStore()
- getSaveUrl()
- createBlock()
- isStockAlertAllowed()
- isPriceAlertAllowed()