# Products in email

**URL:** <https://forum.mautic.org/t/products-in-email/23984>\
**Category:** General Discussion\
**Created:** [May 4, 2022, 10:14am UTC](https://forum.mautic.org/t/products-in-email/23984 "2022-05-04T10:14:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kixell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kixell/32/7238_2.png) [@kixell](https://forum.mautic.org/u/kixell)\
**Post date:** [May 4, 2022, 10:14am UTC](https://forum.mautic.org/t/products-in-email/23984/1 "2022-05-04T10:14:00Z")

</div>

Hello,

how to dynamically add products in emails?  
Is there a better solution than creating custom fields and feeding them through the API for each contact?

The simplest idea at first is to send abandoned cart reminders.

What is the best approach?

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [May 4, 2022, 10:39am UTC](https://forum.mautic.org/t/products-in-email/23984/2 "2022-05-04T10:39:15Z")

</div>

If I am not mistaken you should be able to do this with the RSS feed plugin. I think that @joeyk even made a blog post about this somewhere

---

<div class="post-metadata">

**Author:** ![kixell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kixell/32/7238_2.png) [@kixell](https://forum.mautic.org/u/kixell)\
**Post date:** [May 4, 2022, 11:41am UTC](https://forum.mautic.org/t/products-in-email/23984/3 "2022-05-04T11:41:48Z")

</div>

Thanks for reply, I think that you talk about this plugin [GitHub - ChrisRAoW/mautic-rss-to-email-bundle: Mautic plugin to send emails from RSS](https://github.com/ChrisRAoW/mautic-rss-to-email-bundle)

and also related to this pull request [Add possibility to extend the email form template (edit emails) by ChrisRAoW · Pull Request #10401 · mautic/mautic · GitHub](https://github.com/mautic/mautic/pull/10401)

But is it in 4.2.2 version of Mautic ? I am not sure.  
If yes, how to use it ?  
@joeyk and @chrisraow have you any feedback related to this ?

---

<div class="post-metadata">

**Author:** ![chrisraow](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chrisraow/32/271_2.png) [@chrisraow](https://forum.mautic.org/u/chrisraow)\
**Post date:** [May 4, 2022, 2:20pm UTC](https://forum.mautic.org/t/products-in-email/23984/4 "2022-05-04T14:20:48Z")

</div>

@kixell The pull request is unrelated.

For now I do not see any possiblity to do an abandoned cart email through the rss plugin since that data is dynamic. Current the plugin only works with a static feed.

If you have a way to pull the customers abandoned cart via a rss-feed I’m happy to see if we can make the feed url dynamic too.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [May 5, 2022, 6:04am UTC](https://forum.mautic.org/t/products-in-email/23984/5 "2022-05-05T06:04:15Z")

</div>

Hi,  
We are using abandoned cart reminders the following way:

1. abandoned cart is pushed in to Mautic via API as json (containing image url, product name, price, link)
2. we also push abandonement date
3. email is formatted using the [twig templates plugin](https://mtcextendee.com/marketplace/twig-templates-for-mautic/)
4. We create a segment based on abandonement date, which starts the campaign.
5. Once purchase happens, the abandonment date is deleted, person falls out from the campaign.  
Joey

---

<div class="post-metadata">

**Author:** ![kixell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kixell/32/7238_2.png) [@kixell](https://forum.mautic.org/u/kixell)\
**Post date:** [June 22, 2022, 6:49am UTC](https://forum.mautic.org/t/products-in-email/23984/6 "2022-06-22T06:49:54Z")

</div>

Hi,

I bought the module [twig templates plugin](https://mtcextendee.com/marketplace/twig-templates-for-mautic/) but it breaks Mautic 4.3.1

```auto
In SchemaException.php line 34:
  There is no table with name 'DB.leads' in the schema.

```

I tried two Mautic, tables with and without prefix.

Issue reported and normally fixed [Fixing DoctrineEventSubscriber for plugin installations by escopecz · Pull Request #11206 · mautic/mautic · GitHub](https://github.com/mautic/mautic/pull/11206)

Have you encounter the problem ? And how to fix it please ?

---

<div class="post-metadata">

**Author:** ![shatskiozera](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@shatskiozera](https://forum.mautic.org/u/shatskiozera)\
**Post date:** [August 22, 2023, 10:47am UTC](https://forum.mautic.org/t/products-in-email/23984/7 "2023-08-22T10:47:58Z")

</div>

Hi!

Have you managed to fix this problem with Twig? And is this the only way to add dynamic product cards from the abandoned cart to the email right now?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 22, 2023, 2:02pm UTC](https://forum.mautic.org/t/products-in-email/23984/8 "2023-08-22T14:02:03Z")

</div>

You can also use

> **[GitHub - content-optimizer-gmbh/mautic-advanced-templates-bundle: Plugin...](https://github.com/content-optimizer-gmbh/mautic-advanced-templates-bundle)**
>
> Plugin extends default email template capabilities with TWIG block so you can use advanced scripting techniques like conditions, loops etc - GitHub - content-optimizer-gmbh/mautic-advanced-template...

OR  
you can add the native dynamic content but then you can’t use structured source, like a Json.
