|

Remove <br /> line breaks from emails
Posted 22 November 2013 - 09:13 PM #1
Thanks
Hello,
This is a notification of a new message relating to Order: #1
Name: Tom
Message:
Hello,<br /> <br /> thank you for your order. As the product description states, this product is not available to customers in the United States of America.<br /> <br />We apologise for any inconvenience caused. <br /> <br /> Regards<br /> <br /> Tom
View:
http://www.server.co...ails&order_id=1
Posted 23 November 2013 - 07:07 AM #3
I have found this
http://forum.cs-cart...__fromsearch__1
but I cannot find which file to change. The places that I found replace:"\n":"<br /> are all add-ons, not core files. Not sure where to look.
./design/themes/basic/mail/templates/addons/social_buttons/mail.tpl:{$send_data.notes|replace:"\n":"<br />"}
./design/themes/basic/templates/addons/social_buttons/providers/email.tpl: {if $send_data.notes}
./design/themes/basic/templates/addons/social_buttons/providers/email.tpl: {$send_data.notes}
./product_inquiry_v40x/var/themes_repository/basic/mail/templates/addons/1clue_product_inquiry/mail.tpl:{$send_data.notes|nl2br}
./var/themes_repository/basic/mail/templates/addons/social_buttons/mail.tpl:{$send_data.notes|replace:"\n":"<br />"}
./var/themes_repository/basic/templates/addons/social_buttons/providers/email.tpl: {if $send_data.notes}
./var/themes_repository/basic/templates/addons/social_buttons/providers/email.tpl: {$send_data.notes}
Posted 23 November 2013 - 07:26 AM #4
./design/themes/basic/mail/templates/addons/discussion/notification.tpl:
Contains this:
{if $post_data.message} <b>{__("message")}</b>:<br /> {$post_data.message|nl2br} <br /><br /> {/if}
I will try tweaking this later and report back.
Posted 23 November 2013 - 04:02 PM #5
design/themes/basic/mail/templates/orders/invoice.tpl
and
design/backend/mail/templates/orders/invoice.tpl
Version 4.9.3 SP1
Posted 25 November 2013 - 08:07 AM #6
Posted 29 November 2013 - 09:45 AM #7
Did you change the 2 locations? That fixed it for me on the invoice notes
design/themes/basic/mail/templates/orders/invoice.tpl
and
design/backend/mail/templates/orders/invoice.tpl
Hi, not sure what I have done differently this time, but it worked, for invoices changing the files above, and for email notification changing design/themes/basic/mail/templates/addons/discussion/notification.tpl
I am not now looking for the relevant files for shipments.
Many thanks!!
Posted 29 November 2013 - 10:07 AM #8
for shipping
hallelujah, finally I fixed this. Many thanks for helping me here!!
Posted 30 November 2013 - 10:43 AM #10
{$post_data.message|nl2br nofilter}
i found the issue on addon form_builder but i see the issue appear also in other places
I hope that helps,
---
Valentin
part of hungryweb.net
CS-Cart Development Services, Custom Design & Authorized Reseller
GET A FREE QUOTE