# Email abandoned cart with all abandoned items

**URL:** <https://forum.mautic.org/t/email-abandoned-cart-with-all-abandoned-items/25159>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [August 24, 2022, 2:49pm UTC](https://forum.mautic.org/t/email-abandoned-cart-with-all-abandoned-items/25159 "2022-08-24T14:49:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![romeramatias](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/romeramatias/32/510_2.png) [@romeramatias](https://forum.mautic.org/u/romeramatias)\
**Post date:** [August 24, 2022, 2:49pm UTC](https://forum.mautic.org/t/email-abandoned-cart-with-all-abandoned-items/25159/1 "2022-08-24T14:49:55Z")

</div>

**Your software**  
My Mautic version is: 4.1.1  
My PHP version is: 7.4.3  
My Database type and version is: 10.3.34-MariaDB-0ubuntu0.20.04.1

**Your problem**  
My problem is: I was able to create a list of users who have abandoned carts, but how could I email them the details of the abandoned products? How could Mautic have that information?

These errors are showing in the log: -

Steps I have tried to fix the problem: I’ve my own ecommerce, I’m not using Wordpress.

---

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [August 26, 2022, 2:47am UTC](https://forum.mautic.org/t/email-abandoned-cart-with-all-abandoned-items/25159/2 "2022-08-26T02:47:08Z")

</div>

We’re storing the cart items in json format in a custom field, then parsing it via a twig template…

---

<div class="post-metadata">

**Author:** ![dandumit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dandumit/32/6497_2.png) [@dandumit](https://forum.mautic.org/u/dandumit)\
**Post date:** [February 24, 2023, 4:47am UTC](https://forum.mautic.org/t/email-abandoned-cart-with-all-abandoned-items/25159/3 "2023-02-24T04:47:04Z")

</div>

@gary.harrison for this functionality is it needed to install a special plugin ? are those twig templates available by default ?

---

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [February 24, 2023, 5:17am UTC](https://forum.mautic.org/t/email-abandoned-cart-with-all-abandoned-items/25159/4 "2023-02-24T05:17:08Z")

</div>

You need this plugin - [Twig Templates for Mautic – Mautic Extendee](https://mtcextendee.com/marketplace/twig-templates-for-mautic/)

Then we created a custom field for the contact and populate that field in with JSON based on the items in the cart. After we send the email via a campaign, we clear the field to remove it from the segment. Works well.

---

<div class="post-metadata">

**Author:** ![dandumit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dandumit/32/6497_2.png) [@dandumit](https://forum.mautic.org/u/dandumit)\
**Post date:** [February 24, 2023, 7:40am UTC](https://forum.mautic.org/t/email-abandoned-cart-with-all-abandoned-items/25159/5 "2023-02-24T07:40:37Z")

</div>

@gary.harrison - Thank you my friend !  
It looks to me that Mautic it’s a great product but with small documentation.

Please tell me that plugin has enough documentation to be able to complete this job myself ?

---

<div class="post-metadata">

**Author:** ![kongocat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kongocat/32/8931_2.png) [@kongocat](https://forum.mautic.org/u/kongocat)\
**Post date:** [March 5, 2023, 2:32pm UTC](https://forum.mautic.org/t/email-abandoned-cart-with-all-abandoned-items/25159/6 "2023-03-05T14:32:15Z")

</div>

I will be happy to have that functionality as well.

Can it be done with sending a block of html per user? Or have mautic request the block of html per email sent?

---

<div class="post-metadata">

**Author:** ![zero477](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zero477/32/10873_2.png) [@zero477](https://forum.mautic.org/u/zero477)\
**Post date:** [September 26, 2024, 8:53am UTC](https://forum.mautic.org/t/email-abandoned-cart-with-all-abandoned-items/25159/7 "2024-09-26T08:53:50Z")

</div>

Hello everyone,

I believe this is a crucial functionality, and @gary.harrison has done an excellent job solving it. A more detailed post explaining the steps would be incredibly valuable. I’m happy to contribute by writing it, but I’m not sure where the best place to publish it would be. Any suggestions?
