在结帐成功页面上显示订单 ID
Displaying Order ID on checkout success page
我希望在 opencart 商店的结帐成功页面上显示订单 ID。我该怎么做呢?有与此类似的线程,但我已经尝试了所提供的建议,但对我没有用。所以我在这里包含了相关代码的链接:
我的 catalog/controller/checkout/success.php 在 http://pastebin.com/wPWau0Kv
我的 /template/common/success.tpl 在 http://pastebin.com/5Jfpkur0
谢谢。
我觉得你的$this->session->data['order_id']
有 ordrer_id 存储所以在控制器中你可以传递 $data['order_id']
你必须在 tpl 中回显所以代码可能是这样的:
在控制器中:
$data['activity_data']=$activity_data;
在上面的模板中 <div class="buttons">
:
echo $activity_data['order_id'];
我希望在 opencart 商店的结帐成功页面上显示订单 ID。我该怎么做呢?有与此类似的线程,但我已经尝试了所提供的建议,但对我没有用。所以我在这里包含了相关代码的链接:
我的 catalog/controller/checkout/success.php 在 http://pastebin.com/wPWau0Kv
我的 /template/common/success.tpl 在 http://pastebin.com/5Jfpkur0
谢谢。
我觉得你的$this->session->data['order_id']
有 ordrer_id 存储所以在控制器中你可以传递 $data['order_id']
你必须在 tpl 中回显所以代码可能是这样的:
在控制器中:
$data['activity_data']=$activity_data;
在上面的模板中 <div class="buttons">
:
echo $activity_data['order_id'];