Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

hi community, if anyone can help me i would be very greatful,

my shop can be found here:

http://3am.co.za/catalog

 

i have build in downloads controller contribution, but i see when products are bought it does not subtract it from the stock, i realize that downloads can technically not be out of stock, but i really need this feature,

 

the stock does work in admin though when i delete an order and i check restock items, it adds it to the stock,

 

thank you for any help, have a great day!

ciao/riaan

Posted
hi community, if anyone can help me i would be very greatful,

my shop can be found here:

http://3am.co.za/catalog

 

i have build in downloads controller contribution, but i see when products are bought it does not subtract it from the stock, i realize that downloads can technically not be out of stock, but i really need this feature,

 

the stock does work in admin though when i delete an order and i check restock items, it adds it to the stock,

 

thank you for any help, have a great day!

ciao/riaan

 

FIX:

 

i fixed it by hashing out the following piece of code in catalog/checkout_process.php

/*

// do not decrement quantities if products_attributes_filename exists

if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values['products_attributes_filename'])) {

$stock_left = $stock_values['products_quantity'] - $order->products[$i]['qty'];

} else {

$stock_left = $stock_values['products_quantity'];

}

*/

 

hope it helps someone else too

ciao/riaan

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...