Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do you setup Virtual Products?


sc123

Recommended Posts

Posted

I have read a dozen forum threads but no one has ever given a clear answer as to how you go about setting a product to be "virtual", i.e. electronic.

 

In this case there is no download, it's a software service. I just want it to be virtual to get rid of all the shipping steps in checkout. The KB has nothing and the forums are filled with old posts that never really give an explanation (at least I couldn't find any). I'm using OSC 2.2 RC2.

 

It seems like this is built into OSC but I can't figure it out!

Posted

Well I may have found my own solution, but it's not very obvious and wouldn't work for everyone. I simply removed all of the shipping modules under Modules>Shipping. I believe you product's weight has to be set to "0.00" as well. Then I changed the following in includes/filenames.php:

 

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

 

to:

 

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

 

 

...to bypass the "Delivery information" checkout page.

Posted

If you only want some products to be virtual, enabled the downloads controller and set the weight of those products to 0. If you want them all to be virtual, see this thread. Your method may work (I've never tried it) though I would test to see what happens if you are on the checkout payment page and the quick link at the bottom for checkout_shipping is clicked.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Archived

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

×
×
  • Create New...