Post by superuser » Sat Dec 19, 2009 8:30 pm

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?

New member

Posts

Joined
Sat Dec 19, 2009 8:15 pm

Post by Qphoria » Sat Dec 19, 2009 9:33 pm

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by superuser » Sun Dec 20, 2009 9:49 am

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

New member

Posts

Joined
Sat Dec 19, 2009 8:15 pm

Post by drewcell » Wed Jan 20, 2010 8:22 pm

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

Newbie

Posts

Joined
Wed Jan 20, 2010 8:12 pm

Post by Qphoria » Wed Jan 20, 2010 9:06 pm

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by sandi » Tue Feb 16, 2010 1:51 am

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?

New member

Posts

Joined
Sat Jan 16, 2010 5:46 am

Post by yokan » Thu Jan 20, 2011 4:55 am

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

Newbie

Posts

Joined
Wed Jan 19, 2011 8:02 am
Who is online

Users browsing this forum: No registered users and 7 guests