After upgrading to Magento 2.4.x, order details such as purchased products, subtotal and grand total may be missing from confirmation emails. Open the email template in Magento admin and look for {{layout handle=”sales_email_order_items” order=$order area=”frontend”}}. Replace that value with {{layout…
Contact form message content appears as a single line (Magento 2)
Are comments submitted through the Magento 2 contact form displayed as a single line, losing the sender’s line breaks? A small change to your email template can solve that. Change the following line in your email template:
|
1 |
{{var data.comment}} |
to
|
1 |
{{var data.comment|nl2br}} |
…