Saved Searches & New Product Alerts: documentation
Install, configure and schedule the dfsavedsearch module: saved searches, new-product email alerts, cron and GDPR compliance.
Overview
The Saved Searches & Alerts module (dfsavedsearch) lets your customers save a set of search criteria (keywords, category, manufacturer, price range, availability) and receive an automatic email as soon as a new matching product is published in your store.
The save button also appears when the search finds no product. That is the main use case: the customer looks for an item missing from your catalogue, asks to be notified, and comes back the day you publish it. An anti-duplicate log ensures they are only alerted about products published after they saved their search, and never twice for the same product.
In short: search saved in one click from the results page, word-by-word matching, price filter tax included or excluded, explicit opt-in email alert, daily or weekly digest sent by a self-hosted cron task.
Installation
- In your back office, open Modules > Module Manager and click Upload a module.
- Select the
dfsavedsearch-1.1.0.ziparchive and confirm. - On install, the module creates its two SQL tables, its admin tab and its default configuration. A 32-character cron token is generated automatically.
- The module is active immediately. No external dependency is required (no Composer, no framework).
Updating to 1.1.0: upload dfsavedsearch-1.1.0.zip over the installed version. Your searches, alerts and settings are kept. The upgrade script adds a cron tracking column, translates the admin tab and clears the PrestaShop CSS/JS cache so the new files are served. Version 1.0.0 contained a class name conflict that prevented installation: if an attempt failed, delete the modules/dfsavedsearch folder before uploading 1.1.0.
The module is compatible with PrestaShop 8.0 to 9.x and PHP 8.1 to 8.5, single store or multistore. Interface and emails are translated into FR, EN, ES, DE, IT, NL, PL and PT.
Configuration (back office)
Go to the module configuration page (Modules > Module Manager > dfsavedsearch > Configure). The available settings are:
- Enable module: enables or suspends the button display and alert sending.
- Max products per email digest: maximum number of products listed in a single alert email (12 by default).
- Max saved searches per customer: maximum number of searches a customer can save (20 by default).
- Default alert frequency: daily or weekly, applied to new searches.
- Price filters include tax: « Yes » compares the min/max prices entered by the customer with the regular price including tax, computed with the VAT rate of the default country. « No » compares with the price excluding tax, which suits B2B. On install, this setting follows the price display of the default customer group. Promotions are not taken into account. If taxes are disabled in the store, the comparison always uses the price excluding tax.
- Cron token: shown in plain text, with a regeneration button. The full cron URL and the last run date are recalled in a dedicated panel.
Values are stored in the configuration variables DFSAVEDSEARCH_ENABLED, DFSAVEDSEARCH_MAX_PRODUCTS, DFSAVEDSEARCH_MAX_PER_CUST, DFSAVEDSEARCH_DEFAULT_FREQ, DFSAVEDSEARCH_PRICE_TAX, DFSAVEDSEARCH_CRON_TOKEN and DFSAVEDSEARCH_LAST_CRON.

Customer-side usage
On the search results page, a « Save this search » button is added automatically, with or without results. Clicking it opens a window where the customer can:
- name their search;
- specify or adjust their criteria: keywords, category (sub-categories included), manufacturer, minimum and maximum price (labelled tax incl. or tax excl.), in-stock products only;
- optionally enable the email alert and choose its frequency.
The email alert relies on an explicit opt-in checkbox, unchecked by default, with clear consent wording. A logged-out visitor is prompted to sign in and then returns to their search.




How products are matched
The module splits the search into words (two characters minimum, eight words at most). Each word must appear in the product name, short description or reference, in any order. Case and accents are ignored. A search for « nike pegasus 41 » therefore finds « Nike Air Zoom Pegasus 41 », but not « Pegasus Trail », which does not contain « nike ».
A product is taken into account if it is active in the store, visible in search (visibility « Everywhere » or « Search only ») and named in the language the customer was using when saving. The cron reads the catalogue directly: a product created in the back office, through the webservice, a CSV import or an ERP triggers the alert in the same way. A product that starts matching later (activated, renamed, back in stock) also triggers an alert, once.
The « My saved searches » area
A « My saved searches » entry is added to the customer account through the displayCustomerAccount hook. There the customer finds all their saved searches and can, for each one:
- enable or disable the email alert;
- change the frequency (daily or weekly);
- delete the search.
Each search’s criteria are summarised as readable badges (category, manufacturer, price range tax incl. or excl., in stock).
Since 1.1.0, each search name is a link that runs the search again, amounts are shown with the store currency and the list switches to cards on mobile. With Hummingbird, the default PrestaShop 9 theme, the entry blends into the account dashboard and menu, with its active state. If the customer saves exactly the same search a second time, it is updated instead of duplicated.



Scheduling the cron (sending alerts)
Email sending is driven by a token-secured cron task. Configure your server’s task scheduler (or a cron service) to call the following URL:
https://your-store.com/index.php?fc=module&module=dfsavedsearch&controller=cron&token=YOUR_TOKEN
Replace YOUR_TOKEN with the token shown in the module configuration.
Recommended frequency: call the URL every hour. The module then respects each search’s own frequency (daily or weekly): the last-sent date is only updated when an email is actually sent.
Processing is done in batches of 200 searches, in turn: a search with nothing new goes back to the end of the queue, so every search is checked even beyond 200 active alerts. A lock prevents two simultaneous runs from sending the same email twice. The cron output reports the number of searches processed, emails sent and any errors, logged in the PrestaShop logs. The email, its subject and the price format follow the customer’s language.
Keep your cron token confidential. If it leaks, regenerate it in one click from the configuration: the old URL then stops working.

Saved searches list in the back office
The Customers > Saved Searches menu lists every search: customer, name and query, criteria (category, brand, price, stock), sending language, alert and frequency, number of products already notified and last digest date. A panel recalls the cron URL with a « Run now » button. The list can be exported to CSV and supports bulk deletion.

GDPR compliance
- Explicit opt-in: the email alert is never enabled without a deliberate customer action (checkbox unchecked by default).
- One-click unsubscribe: every email contains a signed unsubscribe link that disables the alert without login.
- Export and deletion: the module integrates with PrestaShop’s GDPR hooks (psgdpr) for personal data export and deletion.
- Automatic purge: when a customer account is deleted, all their saved searches are removed.

Themes and compatibility
No template change is needed. The button and the window are rendered by the standard displayFooter hook, then the button is placed just above #js-product-list-top. If that block does not exist, the module tries #main .page-header, #main h1, then the top of #main. The button stays in place after an AJAX sort or faceted filter.
- PrestaShop 8.0 to 9.x, PHP 8.1 to 8.5, multistore. Tested with the Classic and Hummingbird themes.
- The search string is read from
s, then from the legacysearch_queryparameter. - Hooks used:
displayCustomerAccount,actionFrontControllerSetMedia,displayFooter,actionObjectCustomerDeleteAfter,actionDeleteGDPRCustomer,actionExportGDPRData. - Admin tab
AdminDfSavedSearchunder the Customers menu. - No dependency: manual PSR-4 autoloader, vanilla JS, no external service.
Footers built by a page builder that do not call displayFooter are not supported: in that case the button does not appear.
Troubleshooting
- No email is sent: check that the cron is actually called (last run date in the configuration), that the module is enabled and that PrestaShop’s email configuration works.
- The button doesn’t appear: it only shows on the search results page. Make sure the module is enabled and that your theme calls
displayFooter, then clear the PrestaShop cache. - A customer receives no alert: check that the alert is enabled for that search, that every word of the search appears in the new product’s name, short description or reference, and that the product was published after the search was saved.
- The price filter looks off: check the « Price filters include tax » setting. The compared price is the regular price, without promotions.
Version history
- 1.1.0 (29 October 2026): save window and « My saved searches » link adapted to the PrestaShop 9 Hummingbird theme, styles loaded on the account page, email prices formatted in the customer’s language, round-robin cron with an anti-duplicate lock, identical searches merged, clickable name to run the search again, prices with currency, card layout on mobile, back-office list with criteria and language, admin tab translated into 8 languages, unsubscribe page not indexed, display fixes for Classic.
- 1.0.1 (27 October 2026): fix for the class name conflict that blocked installation, word-by-word matching, price filter tax included or excluded, button stable after AJAX sort or filter,
search_querysupport, translations in 8 languages with the email subject in the customer’s language, validated on PHP 8.3 and 8.4. - 1.0.0 (15 July 2026): first release.