Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

removing the shipping option in checkout


Guest

Recommended Posts

I want to remove the shipping option in the checkout mode and I cannot workout how to do this. please provide me with an explanation. any help much appreciated. :D

Link to comment
Share on other sites

are you doing this because you are not going to ship but have a 'virtual store' for downloads? if so, then any product setup as virtual bypasses the shipping and goes to the checkout payment.

Link to comment
Share on other sites

are you doing this because you are not going to ship but have a 'virtual store' for downloads? if so, then any product setup as virtual bypasses the shipping and goes to the checkout payment.

hang on a minute, I have tried looking around the whole system and cant find where to select an option in the products for "virtual". where is this?

Link to comment
Share on other sites

i think mibble means that when people select and maybe before download the software or something else.....right after select the software....you need to bring them right to the checkut_payment.php page........it's not really there is a "virtual" setting in the system....but you just have to modify the system so it can do that way.....

 

Am I right Mibble??? ;) ;) :P .....hope it is....

OS-commerce is great, but with other magical contributions, that is just so "COOL"!

Link to comment
Share on other sites

thank you for your support. I am not very proficient in the php language. could someone give me some more information on how to modify the coding to run without the shipping option?

Link to comment
Share on other sites

I too need to bypass the shipping info. (I sell tickets and passes for events, and they're held at willcall)

 

I don't speak PHP either, but I looked around and here's what I tried:

 

When one clicks on checkout, it starts catalog/checkout_shipping.php.

I've tried to replace the checkout_shipment files with checkout_payment files.

 

it doesn't work.

 

Hope we can figure it out soon.

 

Thanks,

Cat

Link to comment
Share on other sites

ok, I figured it out.

To bypass the shipping screen at checkout and go directly to the payment screen,

edit catalog/checkout_shipping.php

 

comment the following lines:

 

// if no shipping destination address was selected, use the customers own address as default

/// if (!tep_session_is_registered('sendto')) {

/// tep_session_register('sendto');

/// $sendto = $customer_default_address_id;

/// } else {

// verify the selected shipping address

/// $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$sendto . "'");

/// $check_address = tep_db_fetch_array($check_address_query);

 

/// if ($check_address['total'] != '1') {

/// $sendto = $customer_default_address_id;

/// if (tep_session_is_registered('shipping')) tep_session_unregister('shipping');

/// }

/// }

 

then a little further down, make it think that the order contains only virtual products:

 

// 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 (1) {

 

that's it!

 

 

Cat

Link to comment
Share on other sites

thanks

worked great but i had to end it like this

 

// 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 (1) {

 

notice i dropped the { down a line

 

hope that helps

 

tim

Link to comment
Share on other sites

This does not work for me.... I get an error messages...

 

I have onbly downloadable products and do not need shipping even mentioned...

 

William

Link to comment
Share on other sites

hi

try this

 

FIRST MAKE SURE YOU HAVE THE FILE SAVED AS A COPY IF THIS STUFFS UP

 

// 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 {

 

remove the (1)

 

then test it to completion and order confirmation, if any other thing stops then go back to where you started

 

tim

Link to comment
Share on other sites

hi again

 

ok getting close,

removing the (1) got rid of the shipping page but i then created a loop from the confirm order page?, once i put the original shipping page back the loop went away.

?

sorry for the mis info

tim

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...