Abandoned cart: Link to cart - Magento 2

Shopify connector user, or Dotdigital platform-only user?

If so, abandoned cart functionality is configured and implemented differently - and the information below will not apply. Please instead read the Shopify connector or platform-only (abandoned carts module) articles.


The 'link to cart' functionality adds an additional link to the external dynamic content block used in abandoned cart emails to display an abandoned cart's contents. Where possible, the link will take the recipient right back to where they left off on your website - but this isn’t always the case.

The different behaviours when the link is clicked are as follows:

  • Registered customers who are logged in will be taken straight back to their cart. In doing so, we evaluate the contents of the customer's current quote and any missing items from the abandoned cart that are no longer in the customer's current cart (if they have one on the go) will be re-added.
  • Registered customers who aren’t logged in will be taken to the customer login page and, once logged in, they will be taken to their cart – but their cart doesn’t get completed with missing items from their current quote.
  • Guests with a session that’s still active will be taken straight back to their cart.
  • Guests who no longer have an active session will see all products that are in their abandoned cart email.

Enabling link to abandoned cart

You can enable a link to an abandoned cart using the 'Link To Cart Enabled' dropdown in STORES > Configuration > Dotdigital > Configuration > Abandoned Carts.


In addition to enabling the feature, we also allow you to customise the wording of the link that shows with the external dynamic content block. The default wording is 'Take me to my basket'.

You must add UTM tracking manually to your external dynamic content block.

It is also assumed that your site's cart URL is using the default cart URL - /checkout/cart. However you may have needed to edit this for some reason, so you can also specify the new path if this is the case.

Another assumption is that your site's login URL is using the default login URL - /customer/account/login. However, you may have needed to edit this too, so you can also specify the new path if this is the case.

Did you find this article helpful?

Can we help?

Thanks for using Dotdigital. If you need more help or support, then contact our support team.