Hi. it ll works well, except at this partopencart-solutions wrote: ↑Tue Jan 23, 2018 4:20 pmThat's very simple:
In catalog/controller/mail/order.phpafter addCode: Select all
$data['date_added'] = date($this->language->get('date_format_short'), strtotime($order_info['date_added']));
next findCode: Select all
$data['name'] = $order_info['firstname'])." ".$order_info['lastname']);
and after add thisCode: Select all
$data['text_date_added'] = $this->language->get('text_date_added');
Code: Select all
$data['text_fullname'] = $this->language->get('text_fullname');
In catalog/language/your_language/mail/order_alert.php find thisand after addCode: Select all
$_['text_date_added'] = 'Date Added:';
Code: Select all
$_['text_fullname'] = 'Name:';
In catalog/view/theme/your_theme_name/template/mail/order_alert.twig find thisafter add thisCode: Select all
{{ text_date_added }} {{ date_added }}
...and that is all. If you had problems, contact me calmly. Have a nice dayCode: Select all
{{ text_fullname }} {{ name }}
Code: Select all
$data['name'] = $order_info['firstname'])." ".$order_info['lastname']);
if i put it like this
$data['name'] = $order_info['firstname'] .$order_info['lastname'];
it works, but still there's an error when you send your order, and have to push the button twice.
does anybody know what's wrong? thanks!