Magento
Product Alerts (Headless)
Magento has a quietly high-converting feature built in: Product Alerts. A shopper can ask to be emailed when a product’s price drops or when it’s back in stock — and the day that email lands, they come back and buy. But the signup UI ships only for the Luma frontend, so the moment you go headless it disappears. Product Alerts puts it back: a single GraphQL mutation your storefront calls to subscribe the signed-in customer, while Magento’s own engine does the rest.

Install
Section titled “Install”Install Product Alerts with Composer using your AgenticEcom licence key (find it on your My Licences page — one key unlocks every module you own):
# 1. Register the AgenticEcom repository (once per store)composer config repositories.agenticecom composer https://repo.agenticecom.netcomposer config --global --auth http-basic.repo.agenticecom.net <YOUR-LICENCE-KEY> x
# 2. Require this modulecomposer require agenticecom/module-product-alerts
# 3. Apply itphp bin/magento setup:upgrade && php bin/magento setup:di:compile && php bin/magento cache:flushCompatibility
Section titled “Compatibility”PHP
Frontend
Engine
Magento_ProductAlert (cron + emails).The GraphQL mutation
Section titled “The GraphQL mutation”Call this when a signed-in shopper taps “alert me”:
mutation { subscribeProductAlert(input: { sku: "ABC-123", alert_type: PRICE }) { success message }}| Field | Notes |
|---|---|
input.sku | SKU of the product to watch. |
input.alert_type | PRICE (notify on price drop) or STOCK (notify when back in stock). |
success | true when the subscription was created. |
message | Human-readable status you can show the shopper. |
How it works
Section titled “How it works”-
A signed-in shopper taps “Notify me on a price drop” on a product page.
-
Your storefront calls
subscribeProductAlertwith the SKU andPRICE(orSTOCK). -
The module writes the subscription to Magento’s native product-alert table for that customer.
-
Magento’s
catalog_product_alertcron detects the price drop (or restock) and sends the email through your configured mail transport. -
The email links the shopper back to the product. Pair with Headless Email URLs so that link points at your storefront, not the backend.
Configuration
Section titled “Configuration”There’s no module-specific config — it uses Magento’s standard Product Alerts settings:
Stores → Configuration → Catalog → Catalog → Product Alerts — enable Allow Alert When Product
Price Changes and/or Allow Alert When Product Comes Back in Stock, set the email templates and
sender, then make sure cron is running (the catalog_product_alert group sends the emails).
Does it support back-in-stock as well as price-drop?
Yes — pass alert_type: STOCK for back-in-stock, PRICE for price-drop. Enable the matching
option under Catalog → Product Alerts.
Who sends the emails?
Magento does — its native catalog_product_alert cron job. This module only handles the subscribe
step, so there’s no parallel mail system to maintain.
Can guests subscribe?
No — alerts are tied to a customer account (Magento keys them on customer_id). Prompt guests to
sign in first; your headless account area handles the auth.
How does a shopper unsubscribe?
Magento’s alert emails include the native unsubscribe link, and subscriptions appear under the customer’s account in the admin — all standard Magento behaviour.