guillefd Posted April 3, 2014 Report Posted April 3, 2014 Hi, I'd like to add invoice item details in the email template but doing it wrong, getting error Template parse error: Invalid for loop syntax. This is the code I´m adding to email template (invoice delivery - unpaid) Invoice #: {invoice.id_code} --------------------------------------------------------------- {% for item in invoice.line_items %} {item.description} | {item.qty} | {item.total} {% endfor %} --------------------------------------------------------------- Total: {invoice.total} What I need is to loop {invoice.line_items} and print tha vars I need. Thanks! Quote
0 guillefd Posted April 3, 2014 Author Report Posted April 3, 2014 Sorry, it works. I´ve deleted a {for} line of other loop and was giving me error. Michael 1 Quote
Question
guillefd
Hi,
I'd like to add invoice item details in the email template but doing it wrong, getting error Template parse error: Invalid for loop syntax.
This is the code I´m adding to email template (invoice delivery - unpaid)
What I need is to loop {invoice.line_items} and print tha vars I need.
Thanks!
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.