Guest Posted January 16, 2004 Share Posted January 16, 2004 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 More sharing options...
Guest Posted January 16, 2004 Share Posted January 16, 2004 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 More sharing options...
Guest Posted January 16, 2004 Share Posted January 16, 2004 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 More sharing options...
Guest Posted January 17, 2004 Share Posted January 17, 2004 please somebody help me out :unsure: Link to comment Share on other sites More sharing options...
markchiu Posted January 17, 2004 Share Posted January 17, 2004 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 More sharing options...
Guest Posted January 17, 2004 Share Posted January 17, 2004 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 More sharing options...
kty242 Posted January 19, 2004 Share Posted January 19, 2004 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 More sharing options...
kty242 Posted January 22, 2004 Share Posted January 22, 2004 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 More sharing options...
findtim Posted January 23, 2004 Share Posted January 23, 2004 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 More sharing options...
Guest Posted January 24, 2004 Share Posted January 24, 2004 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 More sharing options...
findtim Posted January 24, 2004 Share Posted January 24, 2004 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 More sharing options...
findtim Posted January 24, 2004 Share Posted January 24, 2004 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 More sharing options...
varnco Posted January 24, 2004 Share Posted January 24, 2004 Can't you just unselect all the shipping options on the shipping module that is in the admin area? No shipping options selected, no shipping will appear on checkout. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.