Question triggered email

Hi Wix Community!
I’m looking for a way to send a triggered E-Mail with a loop in it.
what do i mean by that.
i have a table on my page.
depending on the length of it it has to fill in more fields
for example.

this has to be added once so no problem:

Name :
Order :

this depends on the amount of different products bought:
Artnr :
amount :
price:

i made my own order program since it are no standard products they can order.
now i can set-up an email with 10 options to be filled
but if they only need 1 product, 9 fields will be empty and thats not really a good way to do it.

so is there an option to add a table or so to a triggered E-Mail?
Any help is much Appreciated!

kristof.

Hi Kristof, Unfortunately it is not possible to add a table to a triggered email but perhaps instead of separating the fields that could potentially be empty you could try to make them into a single string which you can edit in the loop according to the amount of items ordered.
If you’re familiar with backticks (as explained here https://www.wix.com/corvid/forum/community-discussion/variable-interpolation ) you can easily edit the string as a paragraph of your choice and even interpolate variables into it.
This way you are always sending a single string for the
Artnr ,amount and price fields (however long and with as many repetitions as you add).

Hi Aviram,
Thanks for the fast reply.
i not familiar with backticks but i will take a look at it.
but making it one string does sound a good idea thanks!

kristof.