1. EDIT: catalog/controller/checkout/cart.php
2. FIND THE FIRST INSTANCE OF:
3. AFTER, ADD:
Note that this will try to goto shipping, but if they user is not logged in, it will take them to the account login page first.
If you want them to go directly to guest checkout, then you can use:
2. FIND THE FIRST INSTANCE OF:
Code: Select all
unset($this->session->data['shipping_methods']);
unset($this->session->data['shipping_method']);
unset($this->session->data['payment_methods']);
unset($this->session->data['payment_method']);
Code: Select all
$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/shipping'));
If you want them to go directly to guest checkout, then you can use:
Code: Select all
$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_1'));
Qphoria wrote:1. EDIT: catalog/controller/checkout/cart.php
2. FIND THE FIRST INSTANCE OF:3. AFTER, ADD:Code: Select all
unset($this->session->data['shipping_methods']); unset($this->session->data['shipping_method']); unset($this->session->data['payment_methods']); unset($this->session->data['payment_method']);
Note that this will try to goto shipping, but if they user is not logged in, it will take them to the account login page first.Code: Select all
$this->redirect($this->url->https('checkout/shipping'));
If you want them to go directly to guest checkout, then you can use:Code: Select all
$this->redirect($this->url->https('checkout/guest'));
Oh! Thanks a lot Qphoria...

hmm ... this isnt working for me.
lines 24 - 28
unset($this->session->data['shipping_methods']);
unset($this->session->data['shipping_method']);
unset($this->session->data['payment_methods']);
unset($this->session->data['payment_method']);
$this->redirect($this->url->https('checkout/guest'));
when i click add to cart, it doesnt add the item, and automatically go to checkout.
likewise, if i click checkout tab it doesnt automatically bypass the /index.php?route=account/login (account login screen)
what i want to do is:
this just needs to be a simple checkout, with only 1 item for order, and no re-orders.
i would like to be able to click add to cart, then in an automated fashion the product be added to the cart, and automatically go to checkout as guest.
this really seemed like the answer. any advice?
- Andrew
lines 24 - 28
unset($this->session->data['shipping_methods']);
unset($this->session->data['shipping_method']);
unset($this->session->data['payment_methods']);
unset($this->session->data['payment_method']);
$this->redirect($this->url->https('checkout/guest'));
when i click add to cart, it doesnt add the item, and automatically go to checkout.
likewise, if i click checkout tab it doesnt automatically bypass the /index.php?route=account/login (account login screen)
what i want to do is:
this just needs to be a simple checkout, with only 1 item for order, and no re-orders.
i would like to be able to click add to cart, then in an automated fashion the product be added to the cart, and automatically go to checkout as guest.
this really seemed like the answer. any advice?
- Andrew
This is the answer... for v1.3.4
If you want v1.4.0 to work then you need
If you want v1.4.0 to work then you need
Code: Select all
$this->redirect($this->url->https('checkout/guest_step_1'));
Tried those steps..but when i click the update button it takes me to index.php?route=checkout/guest_step_1Qphoria wrote:This is the answer... for v1.3.4
If you want v1.4.0 to work then you needCode: Select all
$this->redirect($this->url->https('checkout/guest_step_1'));
and when i click the checkout button it takes me to index.php?route=account/login
any idea why?
Who is online
Users browsing this forum: No registered users and 7 guests