Jump to content
  • 0

Invoice Items Details In Email Template


guillefd

Question

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!

 

 

Link to comment
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...