Page 1 of 1
can we skip basket and go direct to shipping page?
Posted: Sat Dec 19, 2009 8:30 pm
by superuser
Is it possible to skip index.php?route=checkout/cart and go directly to index.php?route=checkout/shipping when user click on Add to Cart button?
Re: can we skip basket and go direct to shipping page?
Posted: Sat Dec 19, 2009 9:33 pm
by Qphoria
1. EDIT: catalog/controller/checkout/cart.php
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']);
3. AFTER, ADD:
Code: Select all
$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/shipping'));
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:
Code: Select all
$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_1'));
Re: can we skip basket and go direct to shipping page?
Posted: Sun Dec 20, 2009 9:49 am
by superuser
Qphoria wrote:1. EDIT: catalog/controller/checkout/cart.php
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']);
3. AFTER, ADD:
Code: Select all
$this->redirect($this->url->https('checkout/shipping'));
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:
Code: Select all
$this->redirect($this->url->https('checkout/guest'));
Oh! Thanks a lot Qphoria...

Re: can we skip basket and go direct to shipping page?
Posted: Wed Jan 20, 2010 8:22 pm
by drewcell
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
Re: can we skip basket and go direct to shipping page?
Posted: Wed Jan 20, 2010 9:06 pm
by Qphoria
This is the answer... for v1.3.4
If you want v1.4.0 to work then you need
Code: Select all
$this->redirect($this->url->https('checkout/guest_step_1'));
Re: can we skip basket and go direct to shipping page?
Posted: Tue Feb 16, 2010 1:51 am
by sandi
Qphoria wrote:This is the answer... for v1.3.4
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_1
and when i click the checkout button it takes me to index.php?route=account/login
any idea why?
Re: can we skip basket and go direct to shipping page?
Posted: Thu Jan 20, 2011 4:55 am
by yokan
we can ship when click guest checkout directly paypal payment page? normal need guest step 1-2-3 we can ship this steps?i mean directly skip confirm order