Jump to content
Sign in to follow this  
twistedfreak

Skip the shipping section

Recommended Posts

I would like to alter osCommerce to bypass the checkout_shipping.php

 

I tried to alter the following line in /includes/filenames.php

 

define('FILENAME_CHECKOUT_SHIPPING', 'checkout_shipping.php');

 

to:

 

define('FILENAME_CHECKOUT_SHIPPING', 'checkout_payment.php');

 

and this seemed to work, however on returning to the site after a purchase a error is produces and I am unable to find out why.

 

I am making a online wedding list for myself and therefore I have no need for shipping as I won't be sending out the goods to anyone. It just gives my friend the opportunity to buy stuff for me online.

Please help, I can't find any information on this query as it is not something that most people require their osCommerce site to do.

 

Thanks in advance.

Share this post


Link to post
Share on other sites

In your admin > modules > shipping, turn off (remove) all installed shipping mods

 

wazu

Share this post


Link to post
Share on other sites

Hi - thanks for your reply, No Shipping modules are on at the moment but it still shows the Delivery Information screen (checkout_shipping.php) when going through the steps to purchase, I would like to bypass this screen totally if it is possible.

Any ideas?

Share this post


Link to post
Share on other sites

In includes/classes/shopping_cart.php, find the function get_content_type() and replace the code inside that function with

return $this->content_type = 'virtual';

 

Jack

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×