Logicify / mautic-advanced-templates-bundle

Plugin extends default email template capabilities with TWIG block so you can use advanced scripting techniques like conditions, loops etc
https://logicify.com/?utm_source=github&utm_campaign=mautic-templates&utm_medium=opensource
MIT License
86 stars 57 forks source link

Same value for different contacts in campaign batch #6

Closed zero-one-devteam closed 4 years ago

zero-one-devteam commented 5 years ago

It looks the twig expression result value from the email template for the first contact in campaign is repeated for every contact in a campaign (e.g. lastname - each contact gets the same lastname)

To reproduce:

  1. Create email template with Twig expression extracting data from contact/lead {% TWIG_BLOCK %}

    Hi {{lead.firstname}},

    {% END_TWIG_BLOCK %}

  2. Select segment with more than 1 contact
  3. Start campaign

-> each contact gets an email with the lastnameof the first contact

silvermind commented 5 years ago

Had the same issue and just sent out a bad Campaign. It seems like the TWIG_BLOCK is only evaluated once per campaign mailing, did you test if it work when using a Code Snippet? https://github.com/Logicify/mautic-advanced-templates-bundle#example-3-reusable-code-snippets It works nicely in form mails..

oytuntez commented 4 years ago

hmm, this is a deal-breaker, no? did anyone achieve campaign emailing with this plugin bundle?

kuzmany commented 4 years ago

Hi guys, can you test https://github.com/Logicify/mautic-advanced-templates-bundle/pull/10 ?

corvis commented 4 years ago

This PR has been merged into master and included into release 1.1. Thanks, @kuzmany