meetmage / module-abandoned-cart
Free abandoned cart emails for Magento 2: a reminder sequence of up to 3 emails, one-time discount codes, one-click cart restore, unsubscribe links and a recovered-revenue report. No third-party email service needed.
Package info
github.com/meetmage-extensions/magento2-module-abandoned-cart
Type:magento2-module
pkg:composer/meetmage/module-abandoned-cart
Requires
- php: ~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0
- magento/framework: ^103.0
- magento/module-catalog: *
- magento/module-checkout: *
- magento/module-config: *
- magento/module-customer: *
- magento/module-email: *
- magento/module-newsletter: *
- magento/module-quote: *
- magento/module-sales: *
- magento/module-sales-rule: *
- magento/module-store: *
Requires (Dev)
- bitexpert/phpstan-magento: ^0.32
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^10.5
Suggests
- hyva-themes/magento2-default-theme: Hyvä storefront support (Tailwind sources are registered automatically)
Provides
None
Conflicts
None
Replaces
None
README
Free abandoned cart emails for Magento 2 and Adobe Commerce. When a shopper leaves items in the cart, the store sends a short sequence of reminders (up to three), each with the cart items and a button that brings the cart back. The last one can include a one-time discount code. A report shows how many orders and how much revenue the reminders brought back.
Everything runs inside Magento with its own email settings: no Mailchimp, Klaviyo or other paid email service.
Tested on Magento Open Source 2.4.9 with the Hyvä Theme storefront and the Luma checkout.
Features
Reminder sequence
- Up to 3 emails. Each one has its own delay, subject, message, template and discount-code option. The defaults are 1 hour and 24 hours, with an optional third email after 3 days.
- Delays count from the last change to the cart. A shopper who comes back and edits the cart pushes the next reminder back instead of getting it straight away.
- Carts that were idle before you installed the module don't get the whole sequence at once: there's always at least the gap between two delays between two emails.
- Each email shows the cart items with images, quantities and prices, and a Return to your cart button.
Stops at the right time
Reminders stop as soon as:
- the cart becomes an order (from the storefront, the admin or the API),
- the same email address places an order with any other cart,
- the shopper unsubscribes,
- the cart has been idle for longer than Stop After (Days) (7 by default).
Only the most recent cart per email address gets a reminder, and you can set a minimum cart subtotal.
One-click cart restore
- Guests get their cart back in one click.
- Registered customers sign in, and their saved cart loads as usual.
- If the reminder has a discount code, it's applied to the cart automatically.
Discount codes
Pick a cart price rule (Specific Coupon with Use Auto Generation). Each cart gets its own one-time code from that rule, so codes can't be shared, and the rule's dates, conditions and amount still apply. A cart keeps the same code across emails.
Unsubscribe and privacy
- Every email has an unsubscribe link. It leads to a page with a button, so mail scanners that open every link can't unsubscribe anyone by accident. Order and shipping emails are not affected.
- Optional "Newsletter subscribers only" mode, if your privacy policy requires marketing consent.
- Guest addresses are only saved when you turn on Save Guest Email at Checkout (off by default). The checkout then shows your notice above the email field.
- The module only stores what a reminder needs: the cart ID, email, name, dates and counters.
Report
Marketing → Communications → Abandoned Cart Emails shows, for the last 30 days and all time: carts reminded, emails sent, click-back rate, orders recovered and recovered revenue, plus the latest 50 reminders with links to the orders. A Send Due Reminders Now button runs the queue without waiting for cron.
CLI
bin/magento meetmage:abandoned-cart:run --dry-run # list what's due, send nothing bin/magento meetmage:abandoned-cart:run # send what's due now bin/magento meetmage:abandoned-cart:test --quote=123 --email=you@example.com --step=1
The test command sends any reminder for any cart to any address, without changing that cart's sequence.
How a cart gets an email address
Logged-in customers always have one. Guests only have one once they type it at checkout. With Save Guest Email at Checkout on, it's saved to the cart as soon as it's typed. That works with the Luma checkout, which Hyvä Theme stores also use. Hyvä Checkout and other one-step checkouts are not covered yet: their guests are reached only if the checkout saves the email to the cart itself.
Compatibility
| Supported | |
|---|---|
| Magento Open Source / Adobe Commerce | 2.4.6 – 2.4.9 |
| PHP | 8.1 – 8.5 |
| Storefront | Hyvä Theme and Luma (emails and restore links don't depend on the theme) |
| Checkout (guest email capture) | Luma checkout (also used by Hyvä Theme stores) |
Installation
composer require meetmage/module-abandoned-cart bin/magento module:enable MeetMage_AbandonedCart bin/magento setup:upgrade bin/magento cache:flush
Reminders are off after installing. Turn them on under
Stores → Configuration → MeetMage → Abandoned Cart Emails, then send yourself a test with
bin/magento meetmage:abandoned-cart:test. Magento's cron must be running.
Configuration
Stores → Configuration → MeetMage → Abandoned Cart Emails (default, website or store view scope)
| Setting | Default | Description |
|---|---|---|
| Enable | No | Send reminders for this store view |
| Email Sender | Sales Representative | Sender identity |
| Minimum Cart Subtotal | 0 | In the base currency |
| Stop After (Days) | 7 | No reminders for carts idle longer than this |
| Send To | Everyone | Or newsletter subscribers only |
| Save Guest Email at Checkout | No | Save the address a guest types, and show a notice |
| First / Second / Third Email | 1 h / 24 h / off (72 h) | Delay, subject, message, discount code, template |
| Discount Codes | – | Cart price rule, code prefix and length |
All three emails use one template file, view/frontend/email/reminder.html. To change the design, create a template
from MeetMage Abandoned Cart: First Email under Marketing → Email Templates and select it for each email.
Support
Free and open source (MIT). Bugs and ideas: GitHub issues. Need help setting it up? Meet Shekhat, freelance Magento developer.
