| [ Web Proxy ] |
| Viewing: https://fx-base.dev/solutions/coding9-price-alert | [Back] [Original] |
Customers subscribe to price drops via double opt-in and get notified automatically
Price drop alerts for Shopware 6.6: customers subscribe on the product page, confirm via double opt-in and automatically receive exactly one email as soon as the product price drops.
coding9_price_alert.check_price_drops):
compares confirmed subscriptions against the current gross price and sends
the notification mail once the subscription is marked notified only after
the mail went out, so transient mail failures are retried and double mails
are impossiblecoding9_price_alert_subscription entity, also reachable through the
auto-generated admin API (/api/coding9-price-alert-subscription).Real, CI-captured screenshots (generate_media job Playwright against a
seeded demo shop, not hand-made tiles) live in docs/imgs/screenshots/:
| Image | What it shows |
|---|---|
screenshot-01.png | Admin list of all price-alert subscriptions product, subscriber email, price at subscription, wish price and confirmed/pending status. |
screenshot-02.png | Storefront signup form on the product page the customer enters their email (and an optional wish price) to be notified when the price drops. |
The demo data behind these shots is produced by ci-seed-demo.sql (six
subscriptions across the lifecycle: confirmed-and-waiting, confirmed-with-wish-
price, already-notified, and a pending double opt-in). The storefront shot is
deep-linked via /price-alert/showcase, which forwards to the first product and
pre-opens the form so the signup fields are visible without a click.
bin/console plugin:refresh
bin/console plugin:install --activate Coding9PriceAlert
bin/console cache:clear
The scheduled task runs through the regular Shopware task scheduler. For an immediate manual run:
bin/console scheduled-task:run-single coding9_price_alert.check_price_drops
Settings Extensions Price Alert:
| Option | Default | Description |
|---|---|---|
| Enable price alert form | on | Master switch for the storefront form |
| Allow target price | on | Show the optional wish-price field |
| Route | Method | Purpose |
|---|---|---|
/price-alert/subscribe | POST | Create an unconfirmed subscription, send confirmation mail |
/price-alert/confirm/{token} | GET | Complete the double opt-in (one-time token) |
/price-alert/showcase | GET | Forward to the first visible product with the alert form pre-opened (shareable "how it works" deep link) |
# Tests (inside a Shopware project, e.g. Dockware)
php vendor/bin/phpunit --configuration custom/plugins/Coding9PriceAlert/phpunit.xml.dist
# Static analysis
php vendor/bin/phpstan analyse --configuration=custom/plugins/Coding9PriceAlert/phpstan.neon
| Web Proxy Viewer | New URL | Original Page |