订单确认页面Prestashop中的订单ID

时间:2017-05-23 07:12:34

标签: prestashop prestashop-1.6

我正在尝试获取订单ID以便确认。我正在使用cashondelivery模块,我在.php文件上搜索但我不知道如何声明它。有任何想法吗? 谢谢

2 个答案:

答案 0 :(得分:0)

尝试:

builder()

此致

答案 1 :(得分:0)

在“cashondelivery.php”文件中,你应该编辑或覆盖“hookPaymentReturn”这样的功能:

public function hookPaymentReturn($params){
    if (!$this->active)
        return ;
    $this->smarty->assign(array(
        'id_order' => $params['objOrder']->id
    ));
    return $this->display(__FILE__, 'confirmation.tpl');
}

现在,您应该可以在confirmation.tpl

中使用{$ id_order}变量
相关问题