我已经阅读了有关丢失订单的所有其他线程,但与众不同的是我使用“免费结帐”和“货到付款”作为我的付款方式,不需要外部调用支付处理器。我已经检查了所有我能想到但似乎无法弄清楚的东西。我已经使用 OpenCart 1.5x 一段时间了,没有任何问题。
问问题
497 次
2 回答
0
Do you have your 'confirm' function in 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);
}
}
于 2015-04-10T12:20:38.180 回答
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'));
}
}
?>
于 2015-04-11T07:33:48.503 回答