Jump to content

请问如何让在“订单详情”和“邮件正文”显示物流号?


mofeewong

Recommended Posts

1. 备份并打开/order-detail.php
2. 在第92行后加入:'shipping_number' => $order->shipping_number,
3. 在第101行后加入:$smarty->assign('shipping_number', $order->shipping_number));
4. 以上我没有测试过 :cheese:



我测试了你的提供的代码,出现如下结果:
Parse error: syntax error, unexpected T_STRING, expecting ')' in D:\www\prestashop\order-detail.php on line 95

Link to comment
Share on other sites

Sorry, 第三步多了一个括号。试试:$smarty->assign(‘shipping_number’, $order->shipping_number);

邮件正文,就直接用{shipping_number}来调用就可以了。

如果还是不行,你上传文件,我来帮你改。

Link to comment
Share on other sites

Sorry, 第三步多了一个括号。试试:$smarty->assign(‘shipping_number’, $order->shipping_number);

邮件正文,就直接用{shipping_number}来调用就可以了。

如果还是不行,你上传文件,我来帮你改。


这是修改以后提示的错误:

Parse error: syntax error, unexpected T_STRING, expecting ')' in D:\www\prestashop\order-detail.php on line 94

order-detail.php

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...