Shopware 6 Flow Builder and an other Email Template for "Customer account registered"

Viewed 64

i have a question: when i want to send a diffent email template in the case of a customer account registration in a specific sales channel (based on a condition from the rule builder), i switch to "Settings", "Shop", "Flow Builder", edit the flow with the name "Customer account registered", click on the tab "Flow" and edit the "send email" action and change the Email template to an other (or new) Email template.

When i do this, it doesn't work, the email will not be sended. But when i duplicated the Email Template with the type "Customer registration" and use this Email template instead of an other Email template (or a new one), it works. Why is this so? So in this case, does it always have to be an Email template of the type "Customer registration"? Or is this a bug?

1 Answers

This is very likely due to a twig syntax error in your template. For example this could happen if you used variables that can't be resolved from the data available to the template. You'll have to double check for missing brackets and such. Also with the variables try to use those from the default template. Also when you edit an email template you should see in the sidebar to the right an icon with the symbol </>. When you click on that it will show you the variables that were available the last time that template was send.

Related