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.

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

2 Answers 2

5

try this on transactional email invoice update

{{var comment|nl2br}}

0
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 and acknowledge you have read our privacy policy.

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