Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing the need for shipping details from osC


d0mokun

Recommended Posts

Posted

Hi guys,

 

Is it possible to remove the need for any shipping details from osC? Our store does not require the user to enter any shipping details because we only offer electronic download products.

 

Many thanks in advance,

Dan.

  • 2 months later...
Posted
Hi guys,

 

Is it possible to remove the need for any shipping details from osC? Our store does not require the user to enter any shipping details because we only offer electronic download products.

 

Many thanks in advance,

Dan.

 

I need to know the same. Pretty Please, I have searched and searched. I did read in the code that it needed to be set to virtual, but where?

 

Angela

Posted
I need to know the same. Pretty Please, I have searched and searched. I did read in the code that it needed to be set to virtual, but where?

 

Angela

 

Hello!

Its simple to disable shipping, just do this:

 

go to your catalog\checkout_shipping.php file change this code:

 

/ if the order contains only virtual products, forward the customer to the billing page as

// a shipping address is not needed

if ($order->content_type == 'virtual') {

if (!tep_session_is_registered('shipping')) tep_session_register('shipping');

$shipping = false;

$sendto = false;

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

}

 

with:

 

// Force virtual products, forward the customer to the billing page as

// a shipping address is not needed

if (!tep_session_is_registered('shipping')) tep_session_register('shipping');

$shipping = false;

$sendto = false;

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

 

This will skip the shipping page on checkout and lead to payment. It worked for me... Backup before any changes!!!

Posted

Thank you so much! That worked perfectly! You're an angel. :wub:

 

Angela

 

P.S. If I can't figure this other thing I am working on, may I please private message you leonardo2212?

 

 

 

Thanks Again!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...