websavers Posted December 4, 2014 Share Posted December 4, 2014 This was first reported here, but deemed not reproducible. Keep in mind that it's not referring to the {$invoice_html_content} variable that is the default for email templates -- that's probably why nobody else is seeing this. You would have to custom build your template to loop through invoice items yourself like this: {foreach key=num item=line_item from=$invoice_items}<tr><td>{$line_item.description}</td><td class="price">{$line_item.amount}</td></tr>{/foreach} When I then send the email template "Credit Card Payment Confirmation" with that in it, the email only shows the second line of a two-line-item invoice. Link to comment Share on other sites More sharing options...
mbit Posted December 4, 2014 Share Posted December 4, 2014 Try disabling Rich-Text editor, write that code and save it like that. I had similar problems, e-mail was showing only one item, and i found out it was because of the Rich-Text editor which made some idiotic changes like closing the foreach loop before it should. Link to comment Share on other sites More sharing options...
websavers Posted December 4, 2014 Author Share Posted December 4, 2014 Try disabling Rich-Text editor, write that code and save it like that. I had similar problems, e-mail was showing only one item, and i found out it was because of the Rich-Text editor which made some idiotic changes like closing the foreach loop before it should. That fixed it! Thanks for commenting I should have noticed that button to disable rich text; silly me. Link to comment Share on other sites More sharing options...
mbit Posted December 4, 2014 Share Posted December 4, 2014 No problem Link to comment Share on other sites More sharing options...
WHMCS Nate Posted December 23, 2014 Share Posted December 23, 2014 Hello, This is why we recommend disabling the rich text editor before inputting smarty code. Its a third party library and it can get confused easily by some smarty work. Have a great day. Nate C Link to comment Share on other sites More sharing options...
Recommended Posts