Opencart 1.5.6.4:COD订单跳转到缺少的订单

Opencart 1.5.6.4:COD订单跳转到缺少的订单,opencart,payment-method,Opencart,Payment Method,我已经阅读了所有其他关于订单缺失的帖子,但不同的是,我使用“免费结帐”和“货到付款”作为我的付款方式,不需要向付款处理程序进行外部调用。我已经检查了所有我能想到的东西,但似乎没有弄明白。我已经使用OpenCart 1.5x一段时间了,没有任何问题。您在catalog/controller/payment/cod.php中有“确认”功能吗 class ControllerPaymentCod extends Controller { protected function index() {

我已经阅读了所有其他关于订单缺失的帖子,但不同的是,我使用“免费结帐”和“货到付款”作为我的付款方式,不需要向付款处理程序进行外部调用。我已经检查了所有我能想到的东西,但似乎没有弄明白。我已经使用OpenCart 1.5x一段时间了,没有任何问题。

您在catalog/controller/payment/cod.php中有“确认”功能吗

class ControllerPaymentCod extends Controller {
protected function index() {
    $this->data['button_confirm'] = $this->language->get('button_confirm');

    $this->data['continue'] = $this->url->link('checkout/success');

    if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/cod.tpl')) {
        $this->template = $this->config->get('config_template') . '/template/payment/cod.tpl';
    } else {
        $this->template = 'default/template/payment/cod.tpl';
    }

    $this->render();
}

public function confirm() {
    $this->load->model('checkout/order');

    $this->model_checkout_order->confirm($this->session->data['order_id'], $this->config->get('cod_order_status_id'), '', true);
}
}
这是我的cod.php


您可以检查$this->config->get('cod\u order\u status\u id')吗。它应该大于0。请尝试从管理面板再次设置。转到管理面板,检查付款中的cod,确认任何订单的默认状态。如果用户使用cod,则应为挂起状态或任何您想要的状态。