My Cart

User Manual - Abandoned Cart Email

Magento 2 Abandoned Cart Email allows sending automated reminders to those purchasers who previously abandoned their shopping carts. In the extension’s settings, merchants can create custom rules with adjustable content, schedule, conditions, and other options according to which emails should be delivered. Created emails can be initially previewed and sent in the test mode. All emails are managed from a separate table. 




Installing Abandoned Cart Email

Command Line Installation

  1. Backup your web directory and store database
  2. Download the Abandoned Cart Email installation package
  3. Upload the contents of the Abandoned Cart Email installation package to your store root directory
  4. In the SSH console of your server, navigate to your store root folder:
cd path_to_the_store_root_folder


php bin/magento module:enable Aheadworks_Acr


php bin/magento setup:upgrade


php bin/magento setup:static-content:deploy -f

     5. Flush store cache; log out from the backend and log in again

Make sure the installation is done from the FTP Administrator account. Otherwise, set 775 permissions to the store root directory after the extension is deployed.

Composer Installation

  1. If you are installing an extension from Aheadworks for the first time, you need to add our composer repository to your Magento store:

Login to your ssh console and navigate to your store folder:

cd path_to_the_store_root_folder

Run the following command:

composer config repositories.aheadworks composer

On successful execution of the command you will be able to use the composer to install the extensions.

To install the extension:

     2. Login to your ssh console and navigate to your store folder:

cd path_to_the_store_root_folder

     3. Run the following command to install the latest version of the extension:

composer require aheadworks/module-abandoned-cart-reminder

if you need to install a specific version, run this command:

composer require aheadworks/module-abandoned-cart-reminder:<version>


Specify the version of the extension in <version>

When prompted, enter Public Key (Username) and Private Key (Password):

Public Key (Username) and Private Key (Password) | Abandoned Cart Email for Magento 2

Both Public Key (Username) and Private Key (Password) can be found in My Projects and Licenses in your personal account on our site:

     4. Enable the extension:

php -f bin/magento module:enable Aheadworks_Acr

Next, register the extension:

bin/magento setup:upgrade

Recompile your Magento store if you are in the Production mode:

bin/magento setup:di:compile

To verify that the extension is enabled, run this command:

bin/magento module:status

Clean store cache, by running the following command:

bin/magento cache:clean

Log out and Log in the backend again.

To upgrade the extension:

     5. To update or upgrade an extension:

Download the updated extension file. Take note of the module-name and version. Export the contents to your Magento root.

If a composer package exists for the extension, run one of the following.

Update per module name:

composer update aheadworks/module-Acr

Updater per version:

composer require aheadworks/module-Acr:<version>

Run the following commands to upgrade, deploy, and clean the cache.

php bin/magento setup:upgrade --keep-generated 
php bin/magento setup:static-content:deploy
php bin/magento cache:clean


Set up cron

If you have already configured cron jobs for your Magento installation then you can skip this step. Read the following instructions on setting cron job for your Magento store: Magento user guide.

Generally, it would be enough to run in SSH console of your server: 

crontab -e
And insert the following line:  
*/3 * * * * php -c <ini-file-path> <your Magento install dir>/bin/magento cron:run
*/3 * * * * php -c <ini-file-path> <your Magento install dir>/update/cron.php
*/3 * * * * php -c <ini-file-path> <your Magento install dir>/bin/magento setup:cron:run
Don't forget to confirm the saving request when exit.



Uninstalling Abandoned Cart Email

Since Magento introduced declarative Database you need to be very carefull when uninstalling or disabling the module.

NOTE: Please be very careful when uninstalling/disabling this module. This module uses a declarative DB scheme. Once the module is uninstalled the DB tables will be lost.

Manual Removal

  1. Run command: 

bin/magento module:uninstall --non-composer Aheadworks_Acr

It will remove data patches including sample data so you can install it again in future

2. Disable extension: 

bin/magento module:disable Aheadworks_Acr

3. Run setup upgrade: 

php bin/magento setup:upgrade

It will remove module related tables from the system

4. Remove module files manually: 


Automatic Removal (via Composer)

1) Disable the module by executing the following commands:
php bin/magento module:uninstall Aheadworks_Acr





Module Version 

Magento Version 

1.1.4  and earlier versions

2.3.Х - 2.3.6

2.4.0 - 2.4.3

As of version 1.1.5


2.4.0 - 2.4.4

As of version 1.1.6

2.4.4 - 2.4.6

As of version 1.1.8

2.4.5 - 2.4.7

The PHP version depends on your current Magento version. Please, refer to your Magento version release notes.




Introducing Abandoned Cart Email

Abandoned Cart Email is a smart email marketing tool that allows store owners to remind customers to check back and check out:

  • Product conditions;
  • Cart conditions;
  • Customer group conditions;
  • Store view conditions;
  • Mail log;
  • Built-in coupon code generator.

This is a straightforward extension that allows store owners converting abandoned carts into orders. Abandoned Cart Email allows sending email reminders to customers who for some reason left their products in the cart, without checking out.

The email reminders can be sent per different store views targeting customers of different languages. With the help of email rule conditions, store owners can further narrow down the reminder audience or create more targeted offers. For example, it is possible to send a special reminder to customers who left products in the cart totaling more than $100, or products from a particular category. In addition, a Shopping Cart Price rule can be linked to the email reminder, allowing for fully automatic coupon code generation. The wide range of targeting and promotional opportunities helps to build a solid marketing strategy.




Creating Abandoned Cart Reminders

The extension allows sending emails automatically to the customers who have left products in the shopping cart and left the store without checking out. One of the crucial features of the extension is the ability to send abandoned checkout emails to guest users. 

Once the shopping cart has been changed it is put in an abandoned cart queue. After an hour, if no other products have been removed/added to the cart it receives 'Abandoned' status, and Abandoned Cart Email rules are scheduled.

After the time, set in the Abandoned Cart Email rule, the email is sent to the customer. Thus, the time total after which an email is sent can be calculated by the following formula:

(1 hour since the last cart update) + (time set in the rule) = time after which an email is sent

Abandoned Cart Email extension introduces its sections to Marketing > Abandoned Cart Reminder by Aheadworks. The main section for email administration is Rules.



This is the section where storeowner creates and manages Abandoned Cart Email rules. Rules are the main extension entity that controls when, what and on which conditions an email is sent to customers.

The Abandoned Cart Email rule grid comes with the following interactive elements:

  • The Columns button allows customizing the grid look by hiding, applying columns. Some columns may be excessive and some relevant to the current tasks;
  • The Filters button allows looking for particular rules depending on the filters selected. Filters include all available abandoned cart rule attributes;
  • The Default View button allows saving the perfect grid look to quickly load it whenever required.

Creating Abandoned Cart Reminders | Abandoned Cart Email for Magento 2

Creating a rule

To create new rule storeowner clicks the 'Add Rule' button. The New Rule section comes with the following settings:

  • Enable - defines if the rule is enabled or disabled;
  • Name - defines the name of the rule for internal identification purposes;
  • Subject - the subject of the reminder email that will be displayed to customers;
  • Content - defines the content of the reminder email. The text can be edited with native Magento WYSIWYG editor.

Creating a rule | Abandoned Cart Email for Magento 2

The Abandoned Cart Email extension supports image display and allows restoring the cart link. Restore cart link is added with this variable: {{var cart_restore_link}}When a customer clicks on the restore cart link, they are redirected to a cart page. The cart contains all items left in the cart, disregarding whether a customer is logged in or not.

Creating a rule | Abandoned Cart Email for Magento 2

In addition, right below the Content section, store owner can click the Preview button to see how the end email will look like. Or send a test email to the specified address by clicking the Send Test Email button.

If a product image is missing (not displayed):

  1. upgrade to Magento 2.3.3;
  2. make alterations within the lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter.js file. 

To complete Option 2, find lines 648 and 650 in the tinymce4Adapter.js file

If a product image is missing | Abandoned Cart Email for Magento 2

and change the highlighted parts in dark red so that they look like the ones below (in green)

If a product image is missing | Abandoned Cart Email for Magento 2

The image display error is found in a Magento 2.3.2 file. The error is eliminated in the successive version 2.3.3.  


  • Send - defines the delay after which an email is sent to the customer (one should consider that the cart is considered abandoned after an hour since the last update);
  • Send Coupon - defines if the coupon should be included in the reminder email;
  • Cart Price Rule - defines what cart price rule should be used to generate the coupon code (only rules with Use Auto Generation option enabled can be used in Abandoned Cart Email rules);
  • Coupon code settings - below Cart Price Rule come coupon code settings, like prefix, suffix and other adjustments that can be used to give the code a required look.

The coupon code are introduced with variable:

{{var coupon.code}}

IMPORTANT! The variable should present in the email content for the coupon code to be generated.

Creating a rule conditions | Abandoned Cart Email for Magento 2

The conditions section allow targeting an email to a particular audience:

  • Cart Conditions - define the shopping cart-related conditions like subtotal, item quantity, product combination;
  • Products - define the product related conditions such as product attributes and product type (simple, configurable, etc.);

Once every rule aspect is configured storeowner clicks the 'Save' button.

The rule is now created and an email will be sent after a set time to customers who left the cart matching conditions set.

Displaying related products

Version 1.1.0 has brought the ability to display related products in the abandoned cart email, thanks to the integration with Magento 2 Automatic Related Products.

The related product block is added to the email content in the form of a widget. Thу widget is set up like any native Magento 2 widget via the path Content > Widgets and is bound to a specific Automatic Related Products rule.

The widget can be added to the email body via the 'Insert a widget' functionality or with the help of the variable

where the rule id is the number of the corresponding Automatic Related products rule.

Sent Email View

The abandoned cart email looks in the following way:

Sent Email View | Abandoned Cart Email for Magento 2

The layout is created with the built-in content settings and enabled integration with Aheadworks Automatic Related Products.



Mail Log

Once the rules have been configured storeowner can track the extension performance under the Mail Log section found at Marketing > Abandoned Cart Reminder by Aheadworks > Mail Log.

Mail Log | Abandoned Cart Email for Magento 2

The section comes with the same interactive elements as Rules section, allowing for quick management. In addition, Mail Log allows storeowner to manually manage scheduled email statuses either one-by-one or en masse. To do this, storeowner selects required emails and in the Action column selects an action:

  • Preview;
  • Cancel;
  • Delete;
  • Send now.

Extension Settings

The last section storeowner has to pay attention to is the settings section. It can be found under Store > Configuration > Aheadworks extensions > Abandoned Cart Reminder.

Extension Settings | Abandoned Cart Email for Magento 2

The section comes with the following elements:

  • Sender - defines an address that will send all reminder emails;
  • Test Email Recipient - defines an email address to which all test emails will be sent;
  • Enable Test Mode - if enabled all outgoing emails will be sent to Test Email Recipient.
  • Keep Emails For, days - defines how long all sent emails should be stored in the Mail Log.


Abandoned Cart Email | Abandoned Cart Email for Magento 2

Product Page

Write Your Own Review

Already used our product?

We would appreciate your feedback. Please, leave a review.

Only registered users can write reviews. Please Sign in or create an account
Report incorrect information

Still Have Questions?

Our customer care team is here for you!

Contact Us