evolution.x Posted September 26, 2012 Share Posted September 26, 2012 Hi, I am trying to show the order total in the subject of the new order email. So far i have this: mailalerts.php - PS 1.4.9.0 - Line 171 $subject = $this->l('Order', false, (int)$id_lang).' - '.sprintf('%06d', $order->id).' - '.sprintf('%c156').sprintf($order->total_paid, $currency); Output from above: [shop Name] Order - 000999 - 10.99 Output Wanted: [shop Name] Order - 000999 - £10.99 This shows me the order amount but i cannot get the pound symbol to show? As you can see i have tried ASCII %c156 but this does not work? Any help on this would be great! Link to comment Share on other sites More sharing options...
math_php Posted September 28, 2012 Share Posted September 28, 2012 (edited) Hi Subject must be send in this case in correct mime type encoding with utf8 charset for example. I am really not sure that the mail client will detect UTF8 and create correct mime type but I would try a utf8_encode($subject). or $subject = '=?UTF-8?B?'.base64_encode(utf8_encode($subject)); or $subject = '=?UTF-8?B?'.base64_encode($subject); Good luck Edited September 28, 2012 by math_php (see edit history) Link to comment Share on other sites More sharing options...
CartExpert.net Posted September 28, 2012 Share Posted September 28, 2012 Hi. While encoding can help you display the £ symbol, most mail servers would regard it as spam, so it is not wise to include currency symbols or words like 'FREE', 'CREDIT CARD' etc. So this could be rather a loss than a gain. Regards. Robin. The CartExpert Team Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now