Home โ€บ Modules โ€บ phyto_restock_alert

phyto_restock_alert

'Notify me when available' โ€” out-of-stock email subscriptions with automatic dispatch on restock, admin subscriber management, and manual send capability.

Invoicing & Notifications v1.0 PrestaShop 8 Browse Source on GitHub โ†—
modules/phyto_restock_alert/
Direct path in the repo โ†’ all PHP, SQL, templates, and assets
Open on GitHub โ†—

Overview

When a product is out of stock, a widget on the product page lets customers subscribe with their email. The moment stock goes above zero โ€” from any source โ€” all subscribers for that product receive a branded email with a direct buy link. No manual step required.

Customer Flow

  1. Product page shows “Out of Stock” + “Notify me when available” widget
  2. Customer enters name + email (works for guests and logged-in customers)
  3. On any stock update (manual or import) that brings quantity above 0, all subscribers receive the notification email automatically
  4. Email contains product name, image, price, and a direct “Buy Now” link

Admin Features

  • Restock Alert Subscriptions panel: list all subscriptions filterable by product or notified status
  • Delete individual subscriptions
  • Mark as notified (for manual tracking)
  • Manual send: trigger notification email for any row from the admin
  • Per-product subscriber count shown inside the product edit page

Source Layout

PathPurpose
phyto_restock_alert.phpModule entry + hooks
classes/PhytoRestockSubscriber.phpORM for subscriber records
classes/PhytoRestockMailer.phpEmail notification dispatch
controllers/front/subscribe.phpAJAX subscription endpoint
controllers/admin/AdminPhytoRestockAlertController.phpAdmin subscriber list
sql/install.sqlCreates subscribers table
views/templates/hook/widget.tplProduct page subscribe widget
View Full Source โ†— โ† Back to All Modules