我已经阅读了关于缺少订单的所有其他主题,但是有什么不同之处在于我使用“免费结账”和“货到付款”作为我的付款方式,不需要外部打电话给付款处理器。我已经检查了所有我能想到的东西,似乎无法弄明白。我一直在使用OpenCart 1.5x,没有任何问题。
答案 0 :(得分:0)
你有没有确认'目录/ 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);
}
}
答案 1 :(得分:0)
这是我的cod.php
<?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'));
}
}
?>
&#13;