简体   繁体   中英

Show fax number in email (Opencart)

I'm using OpenCart v. 1.4.9.3 and I'm trying to put the customer's fax number in the confirmation email. I've tried putting the following in the order_confirm.tpl template, but no avail:

Fax <strong><?php echo $customer_fax; ?></strong><br />

Do I need to modify the controller? I'm still a newbie at OpenCart.

You will need to edit the Model actually as well as the edit you have already done

/catalog/model/checkout/order.php

Find

$template->data['customer_telephone'] = $order_query->row['telephone'];

After it put

$template->data['customer_fax'] = $order_query->row['fax'];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM