Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Virtual Products config how-to


dwbrown

Recommended Posts

Posted

Hello oscommerce gurus, I have posted this some weeks ago but never got an answer. Doing a search on: "virtual products" returns null. I am running milestone and from studying the code e.g. checkout_shipping.php I noticed the comment doco that follows:

 

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

// a shipping address is not needed

The code logic performs a boolean test with the following code snippet:

 

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

 

This logic is sprinkled throughout oscommerce so chasing this down would be a major hack. I assume there must be some "config" through the admin page to enable virtual products. Please advise.

Posted

I am not sure but to my mind virtual products = downloads (you do not need to ship them so that is why customer directet to payment page instead of shipping info page). So enable Downloads in Admin and you're set

 

Thanks

Posted

Hello, thanks for the speedy reply. Ur right, downloads is the key but something is wrong with configure.php a snippet follows:

 

//define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD', '/home/dwbrown/html/www.webitplanet.com/wip/download/');

 

The commented out "define" is the default config but I get a "red" warning that the "download" directory does not exist. The uncommented "define" is my hack which cure the warning about no download directory but a "checkout" still goes to the "shipping" page and not directly to the "billing" page. Please advise.

Posted

what do you have for DIR_FS_CATALOG?

 

in your case it has to be /home/dwbrown/html/www.webitplanet.com/wip/

 

Most likely you have smthg different there that's why define statement dos not work for you

 

Thanks

Archived

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

×
×
  • Create New...