Search by

cart-recovery / module-abandoned-cart

will-wright1

Configurable abandoned cart recovery emails for Magento Open Source and Adobe Commerce.

Package info

github.com/will-wright1/magento-abandoned-cart

Type:magento2-module

pkg:composer/cart-recovery/module-abandoned-cart

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-11-26 17:06 UTC

This package is auto-updated.

Last update: 2026-11-26 17:07:50 UTC


README

A standalone Magento 2 extension extracted from the Vanimal abandoned-cart module. It captures guest email addresses on Magento’s standard checkout and sends up to three reminders with an item summary, a cart recovery link and an unsubscribe link. Magento Admin includes delivery and conversion logs, an unsubscribe list, and a test-send button.

Install

Use Magento Open Source or Adobe Commerce 2.4 with its supported PHP version. The Composer package declares PHP 8.1+ and Magento module versions starting with 2.4.4. Runtime verification targets Magento Open Source 2.4.9 on PHP 8.5. Guest email capture uses the standard Magento checkout email field. Check the integration on a store with a custom checkout before enabling reminders.

Once the package is listed on Packagist, install it from the Magento root:

composer require 'cart-recovery/module-abandoned-cart:^1.0'

To install from a local Git checkout of this repository, configure a path repository:

composer config repositories.cart-recovery path "/path/to/magento-abandoned-cart"
composer require 'cart-recovery/module-abandoned-cart:dev-main'

For a manual install, copy the module’s contents into app/code/Vanimal/AbandonedCart.

Enable the module and apply its database schema:

bin/magento module:enable Vanimal_AbandonedCart
bin/magento setup:upgrade
bin/magento cache:clean

Compile dependency injection and deploy static content as part of the store’s normal production deployment. The extension runs every 20 minutes through Magento’s default cron group.

Configure a store

  1. In Stores → Configuration → Sales → Abandoned Cart, select the website or store view. Scheduled emails and guest email capture start disabled.
  2. Set the sender name and email or inherit Magento’s General Contact identity. Templates use the store’s configured email header, footer and logo. The cart summary displays the quote currency. The minimum cart value uses the store’s base currency.
  3. Review the three templates and timing. The defaults are 1 hour after the last cart update, 24 hours after the first email and 72 hours after the second. The sending window is 07:00 to 20:00 in each store’s timezone. The cron looks at active carts updated in the last seven days.
  4. Send previews from Testing at Default Config scope. The emails go to the signed-in admin using the default store view’s settings and contain sample items and placeholder links. To customize the copy, load the built-in templates under Marketing → Email Templates, save your versions and select them for each stage. Use {{var restore_url}} and {{var unsubscribe_url}} directly in links. The recovery URL already includes campaign parameters.
  5. Enable the extension for the intended scope and check guest checkout, recovery, and unsubscribe on that store. Marketing → Abandoned Cart shows the Email Log and Unsubscribe List. Opt-outs apply across the Magento installation.

The optional free delivery message is off by default. Enable it only if the store has a matching delivery rule.

Delivery and recovery

The Email Log records each delivery attempt before contacting the mail provider. sent means the transport reported success. unconfirmed means the transport or final database update failed. A pending entry can also remain after an interrupted process. Magento holds the reminder sequence for either unresolved state. Check the mail provider's logs when investigating a held delivery.

Cart recovery links are valid for seven days and require an active cart with the original recipient's email address. Account-owned carts require sign-in to the owning Magento account. Newly issued unsubscribe links use separate tokens and keep working after the corresponding cart link expires. Existing unsubscribe links continue to work.

Replace the original Vanimal copy

The package retains the Vanimal_AbandonedCart module ID, configuration paths, template IDs, ACL IDs and database tables. Existing saved settings, send history, opt-outs and unexpired cart links carry over when the code is replaced in the same installation. New emails use the abandonedcart storefront route and older emails can still use the vanimal route.

Before switching, record the effective enable, sender, and free delivery settings for each scope. Save any inherited values you want to keep because the packaged defaults are different. If you want to preserve Vanimal’s original email copy, save the templates as Magento email templates or theme overrides and correct any recovery links as described above. The included templates use general retail copy.

Replace the embedded module with this package in a single deployment. Stop Magento cron and let any active send job finish before replacing the code. Install one copy of Vanimal_AbandonedCart, run setup:upgrade and your normal deployment steps against the existing database, then restart cron. Verify checkout, cron and the email transport on staging before enabling live reminders.

Adobe Commerce module packaging · Enable and upgrade modules