我正在使用OpenCart v。1.4.9.3
,我正在尝试将客户的传真号码放入确认电子邮件中。我已尝试在order_confirm.tpl
模板中添加以下内容,但无效:
Fax <strong><?php echo $customer_fax; ?></strong><br />
我需要修改控制器吗? 我还是OpenCart的新手。
答案 0 :(得分:2)
您需要实际编辑模型以及您已完成的编辑
/catalog/model/checkout/order.php
查找
$template->data['customer_telephone'] = $order_query->row['telephone'];
之后
$template->data['customer_fax'] = $order_query->row['fax'];