Forums / All Other Contributions/Addons / From cart directly to checkout

From cart directly to checkout

Locked

Started by marknew on 29 May 2006, 2:49 AM · Views: 2,309

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
29 May 2006, 2:49 AM
#1
marknew avatar

marknew

Zen Follower

Join Date:
Oct 2005
Posts:
274
Plugin Contributions:
0

From cart directly to checkout

I found this in the archives and would like to use it on my site (1.301). but when i add the code, i have trouble with getting to the checkout. When i click go to checkout, it gets stuck trying to load the checkout_shipping page.
Can anyone help?

"If you only have one shipping method and one payment method and do not use coupons, it can be tedious to a customer click through the whole checkout process when they don't have any options on those screens. So here goes my shot at skipping the shipping and payment screens...

  1. Open \includes\modules\pages\checkout_shipping\header_p hp.php

At the end (before the closing php tag) add this code:
Code:

zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT));

  1. Open \includes\modules\pages\checkout_payment\header_ph p.php

At the end (before the closing php tag) add this code:
Code:

zen_redirect(zen_href_link(FILENAME_CHECKOUT_CONFIRMATION));

This should just load those page defaults and then at the end redirect to the next page of the checkout process. The customer still gets the Change Address buttons if the billing or shipping is a different address so they can change that data, but this sets up a sort of express checkout."

29 May 2006, 2:55 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,718
Plugin Contributions:
0

Re: From cart directly to checkout

If you don't need a shipping cost then make all of your products zero weight and turn on the freeshipper. The Cart will skip the shipping page automatically. No coding required.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

29 May 2006, 8:36 AM
#3
marknew avatar

marknew

Zen Follower

Join Date:
Oct 2005
Posts:
274
Plugin Contributions:
0

Re: From cart directly to checkout

Thanks Kim,

We do add a fee for handling. Can i set it to fre shipping ( and skip the shipping page) but add the fee somewhere else?

Mark.