Page 1 of 1

Dulpicate order numbers

Posted: Wed Oct 10, 2018 9:33 pm
by daphne
Hello everybody!

For the past 3 days i 've been having the following issue.
I receive an order eg #2190 containing product X. In my webmail however, I receive two notification emails with the same order number (2190). One email contains product X (same as in the system) and the other contains product Y. Problem is that the notification email doesn't contain customer contact details, therefore I cannot figure out who the "lost" order is coming from.
OC with Journal theme

Any insights highly appreciated!

Re: Dulpicate order numbers

Posted: Sat Oct 13, 2018 10:22 pm
by straightlight
In catalog/controller/mail/order.php file,


Code: Select all

$mail->setSubject(html_entity_decode(sprintf($this->language->get('text_subject'), $this->config->get('config_name'), $order_info['order_id']), ENT_QUOTES, 'UTF-8'));
replace with:

Code: Select all

$mail->setSubject(html_entity_decode(sprintf($this->language->get('text_subject'), $this->config->get('config_name'), $order_info['order_id'], $order_info['firstname'], $order_info['lastname'], $order_info['telephone']), ENT_QUOTES, 'UTF-8'));
Then, in catalog/language/<your_language>/mail/order_alert.php file,


Code: Select all

$_['text_subject']      = '%s - Order %s';

Code: Select all

$_['text_subject']      = '%s - Order %s - Customer name: %s %s - Telephone: %s';
These infos should now appear in the email's subject line upon notifications.