Hi,
I am using OC 2.1.0.2
I am using the default fax field for customers membership numbers and have changed the language files to reflect that but now I need that field to be shown in the order emails I receive.
Is this possible?
Thanks,
Dean
Hi,
In catalog/model/checkout/order.php in function addOrderHistory find area:
and after this line add:
Now in catalog/view/theme/your_theme/template/mail/order.tpl in place you want use
Lines above are for email sent to customer;
If you want to include same field in admin mail then in same function ex (before or where you neeed) find:
afther this line add:
Don't forget to define in language file
Be sure you added text only in admin email (IF THAT'S WHAT YOU WANT)
In catalog/model/checkout/order.php in function addOrderHistory find area:
Code: Select all
$data['telephone'] = $order_info['telephone'];
Code: Select all
$data['fax'] = $order_info['fax'];
Code: Select all
<?php echo $fax; ?>
If you want to include same field in admin mail then in same function ex (before or where you neeed) find:
Code: Select all
$text .= $language->get('text_new_order_id') . ' ' . $order_id . "\n";
Code: Select all
$text .= $language->get('text_fax_or_etc') . ' ' . $order_info['fax'] . "\n";
Code: Select all
$_text_fax_or_etc = 'Some text you want';
Who is online
Users browsing this forum: No registered users and 49 guests