【发布时间】:2015-04-10 07:02:54
【问题描述】:
我已阅读所有其他关于丢失订单的帖子,但不同之处在于我使用“免费结帐”和“货到付款”作为我的付款方式,不需要进行外部致电支付处理商。我已经检查了所有我能想到但似乎无法弄清楚的东西。我已经使用 OpenCart 1.5x 一段时间了,没有任何问题。
【问题讨论】:
我已阅读所有其他关于丢失订单的帖子,但不同之处在于我使用“免费结帐”和“货到付款”作为我的付款方式,不需要进行外部致电支付处理商。我已经检查了所有我能想到但似乎无法弄清楚的东西。我已经使用 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
<?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'));
}
}
?>
【讨论】: