When an order has been placed, the merchant receives an order confirmation by mail (as coded in catalog_model_checkout_order.php).
I have modified the setSender as following in order to display the name of the buyer in my mailbox instead of the name of my shop:
Code: Select all
$mail->setSender(html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
Code: Select all
$mail->setSender(html_entity_decode($order_info['payment_firstname']." ".$order_info['payment_lastname'], ENT_QUOTES, 'UTF-8'));
For instance the name "Valérie Lastname" appears as "Amélie Lastname" as sender name in my mailbox. As far as I understand, an encoding with UTF-8 is the correct and most common way? Or do I have to use the ISO-8859-15 encoding so the code would become:
Code: Select all
$mail->setSender(html_entity_decode($order_info['payment_firstname']." ".$order_info['payment_lastname'], ENT_QUOTES, 'ISO-8859-15'));
I use OC 2.0.3.1 with Journal theme
Regards,
Vicef