mofeewong Posted December 6, 2009 Share Posted December 6, 2009 当我填写了物流号码,即:shipping number的时候,前台的订单detail和邮件正文都无法调用,用{shipping_number}去调用也不行,如何搞定它? Link to comment Share on other sites More sharing options...
21846657 Posted December 7, 2009 Share Posted December 7, 2009 1. 备份并打开/order-detail.php2. 在第92行后加入:'shipping_number' => $order->shipping_number,3. 在第101行后加入:$smarty->assign('shipping_number', $order->shipping_number));4. 以上我没有测试过 :cheese: Link to comment Share on other sites More sharing options...
mofeewong Posted December 7, 2009 Author Share Posted December 7, 2009 那邮件正文里面如何设置呢? Link to comment Share on other sites More sharing options...
mofeewong Posted December 7, 2009 Author Share Posted December 7, 2009 1. 备份并打开/order-detail.php2. 在第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 More sharing options...
21846657 Posted December 9, 2009 Share Posted December 9, 2009 Sorry, 第三步多了一个括号。试试:$smarty->assign(‘shipping_number’, $order->shipping_number);邮件正文,就直接用{shipping_number}来调用就可以了。如果还是不行,你上传文件,我来帮你改。 Link to comment Share on other sites More sharing options...
mofeewong Posted December 9, 2009 Author Share Posted December 9, 2009 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 More sharing options...
21846657 Posted December 10, 2009 Share Posted December 10, 2009 Hi Mofee,用附上的文件测试吧。 order-detail.php Link to comment Share on other sites More sharing options...
mofeewong Posted December 10, 2009 Author Share Posted December 10, 2009 Hi Mofee,用附上的文件测试吧。 Hi, 我测试了,不过还是不行,以下是截图。如果实在不行的话就单独发邮件好了…………不过还是要先谢谢你 Link to comment Share on other sites More sharing options...
21846657 Posted December 10, 2009 Share Posted December 10, 2009 不客气。但是,你的邮件模板添加{shipping_number}了吗?order-detail.tpl添加{$shipping_number}了吗? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now