0
내가 사용 OpenCart의 V를 건너 1.4.9.3 내가 노력하고있어 스킵 2 단계 ->Opencart -. 2 단계
index.php?route=checkout/guest_step_2
내가 컨트롤러를 수정해야합니까?
p/s :이 opencart는 단지 조회를 보낼 필요가 없으며 지불이나 의견이 필요하지 않으므로 모든 단계를 최소화하려고 노력합니다.
내가 사용 OpenCart의 V를 건너 1.4.9.3 내가 노력하고있어 스킵 2 단계 ->Opencart -. 2 단계
index.php?route=checkout/guest_step_2
내가 컨트롤러를 수정해야합니까?
p/s :이 opencart는 단지 조회를 보낼 필요가 없으며 지불이나 의견이 필요하지 않으므로 모든 단계를 최소화하려고 노력합니다.
배송을 건너 뛸 수는 있지만 지불을 건너 뛰는 것은 전혀 다른 일입니다. 지불 유형에 Cash On Delivery와 같은 것을 사용해야하고 guest_step_2에 세션 지불 유형을 설정해야합니다. 가 여기에 해당 페이지의 게시물에 대한 코드, 그래서 그냥 게시물을 제거하고 지불 코드를 설정해야합니다 그래서
if (($this->request->server['REQUEST_METHOD'] == 'POST') && !isset($this->request->post['coupon']) && $this->validate()) {
if (isset($this->request->post['shipping_method'])) {
$shipping = explode('.', $this->request->post['shipping_method']);
$this->session->data['shipping_method'] = $this->session->data['shipping_methods'][$shipping[0]]['quote'][$shipping[1]];
}
$this->session->data['payment_method'] = $this->session->data['payment_methods'][$this->request->post['payment_method']];
$this->session->data['comment'] = $this->request->post['comment'];
$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_3');
}
이
된다 (전달 방법에 현금으로, 그것은 "대구"입니다)if (isset($this->request->post['shipping_method'])) {
$shipping = explode('.', $this->request->post['shipping_method']);
$this->session->data['shipping_method'] = $this->session->data['shipping_methods'][$shipping[0]]['quote'][$shipping[1]];
}
$this->session->data['payment_method'] = $this->session->data['payment_methods']['cod'];
$this->session->data['comment'] = ''; // Make comment empty
$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_3');
당신은 또한 당신이 BU에 대한 테스트 할 기회가 없었습니다,이 그냥 개념이 선 아래
$this->session->data['payment_methods'] = $method_data;
메모를이 이동해야합니다 이론적으로는 효과가있을 것입니다. 위 코드를 남겨 두었을지라도이 코드를 제거 할 수도 있습니다.
if (isset($this->request->post['shipping_method'])) {
$shipping = explode('.', $this->request->post['shipping_method']);
$this->session->data['shipping_method'] = $this->session->data['shipping_methods'][$shipping[0]]['quote'][$shipping[1]];
}
감사합니다. @ Jay ... 이제이 단계를 건너 뛸 수 있습니다 (2 단계). – ruslyrossi