Outpower Hosting Posted February 8, 2019 Share Posted February 8, 2019 I added the price formatter code in the invoice email template (eg: Invoice Reminder) to display the numeric value only. When this code is applied, the entire email loses HTML formatting and is being sent as a plain text email. Code I used is: {$invoice_balance->toNumeric()} What can I do to retain the HTML format of the email while displaying the numeric value as I am using it to build a link without the currency code inside the email. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 9, 2019 Share Posted February 9, 2019 On 08/02/2019 at 12:11, Outpower Hosting said: I added the price formatter code in the invoice email template (eg: Invoice Reminder) to display the numeric value only. When this code is applied, the entire email loses HTML formatting and is being sent as a plain text email. this is a long-standing bug/issue where the WHMCS email template editor tries to change > to > - even if you're using the source code popup window, it can still do it... 🙄 On 08/02/2019 at 12:11, Outpower Hosting said: What can I do to retain the HTML format of the email while displaying the numeric value as I am using it to build a link without the currency code inside the email. two thoughts... firstly, edit the email template directly in phpmyadmin or similar - that will bypass the WHMCS editor... though if you go down this road, you will have to continue editing the template in the future directly, because the minute you try to edit it in WHMCS, it will make the > to > change again (until this issue is resolved). the other way would be to abandon using toNumeric and just use a Smarty replace (or multiple replaces)... {$invoice_balance|replace:'$':''|replace:'₹':''} 1 Quote Link to comment Share on other sites More sharing options...
Outpower Hosting Posted February 10, 2019 Author Share Posted February 10, 2019 On 2/9/2019 at 5:29 PM, brian! said: the other way would be to abandon using toNumeric and just use a Smarty replace (or multiple replaces)... {$invoice_balance|replace:'$':''|replace:'₹':''} Thank You! This did the trick for now. I hope this is fixed in the future versions. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 11, 2019 Share Posted February 11, 2019 17 hours ago, Outpower Hosting said: I hope this is fixed in the future versions. it's been around for a while, so there's no saying if/when it would be fixed. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.