starachna Posted December 7, 2005 Posted December 7, 2005 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 Quote
starachna Posted December 11, 2005 Author Posted December 11, 2005 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 Quote
Recommended Posts
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.