【问题标题】:Opencart 1.5.6.4 : COD orders jumps to missing ordersOpencart 1.5.6.4:COD 订单跳转到缺失订单
【发布时间】:2015-04-10 07:02:54
【问题描述】:

我已阅读所有其他关于丢失订单的帖子,但不同之处在于我使用“免费结帐”和“货到付款”作为我的付款方式,不需要进行外部致电支付处理商。我已经检查了所有我能想到但似乎无法弄清楚的东西。我已经使用 OpenCart 1.5x 一段时间了,没有任何问题。

【问题讨论】:

    标签: opencart payment-method


    【解决方案1】:

    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);
    }
    }
    

    【讨论】:

      【解决方案2】:

      这是我的 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'));
      	}
      }
      ?>

      【讨论】:

      • 您能否检查一下 $this->config->get('cod_order_status_id')。它应该大于 0。请尝试从管理面板重新设置。
      • 转到管理面板并检查付款中的 cod,如果用户使用 cod,请确认任何订单的默认状态,它应该是待处理或任何您想要的。
      猜你喜欢
      • 1970-01-01
      • 2012-03-04
      • 2020-08-18
      • 1970-01-01
      • 1970-01-01
      • 2017-08-03
      • 1970-01-01
      • 1970-01-01
      • 2021-06-16
      相关资源
      最近更新 更多