6

In magento while sending an invoice the commend is showing up in the same line. The line break is not working.

Please anyone help me to add line break in invoice comments.

  • Don't know if that could work, but since emails are in HTML, have you tried using <br/>'s? – Julien Lachal Nov 2 '15 at 14:36
5

try this on transactional email invoice update

{{var comment|nl2br}}

3

It should simple work to add a HTML tag around the place you use the comments.

For some of my stores I have it like that

{{layout area="frontend" handle="sales_email_order_invoice_items" invoice=$invoice order=$order}}
</br>                    
</br>
<p style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;color: #fff;line-height: 1.2em">{{var comment}}</p>

And that works fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.