cometrulz Posted October 30, 2013 Posted October 30, 2013 Hey all, I am wondering if it is possible to show the stock quantity in the product info page. If so how do I do it please? Help appreciated...
Jack_mcs Posted October 30, 2013 Posted October 30, 2013 See admin->Configuration->Product Listing->Display Product Quantity 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
♥14steve14 Posted October 30, 2013 Posted October 30, 2013 There are many addons to show the stock quantity on the product_info.php page. Have a look at http://addons.oscommerce.com/info/4362 http://addons.oscommerce.com/info/2629 I believe that both of these will work with the latest versions of osc but untested. You can also use google to search these forums to find your answer. REMEMBER BACKUP, BACKUP AND BACKUP
Guest Posted October 30, 2013 Posted October 30, 2013 See admin->Configuration->Product Listing->Display Product Quantity this right.
burt Posted October 30, 2013 Posted October 30, 2013 There is also a function called: tep_get_products_stock() This can be used anywhere.
De Dokta Posted October 30, 2013 Posted October 30, 2013 Hi, the above mentioned settings in the admin have no effect on the product_info-page. But you can easily retrieve the stock quantity in the product_info.php without any add-on. Simply paste in the desired location, e.g. under the following passage: <?php echo stripslashes($product_info['products_description']); ?> this: <?php echo STOCK . $product_info['products_quantity']); ?> Then define STOCK in the product_info language file - and that's it! :D greetz J.J.
cometrulz Posted October 31, 2013 Author Posted October 31, 2013 Hi, the above mentioned settings in the admin have no effect on the product_info-page. But you can easily retrieve the stock quantity in the product_info.php without any add-on. Simply paste in the desired location, e.g. under the following passage: <?php echo stripslashes($product_info['products_description']); ?> this: <?php echo STOCK . $product_info['products_quantity']); ?> Then define STOCK in the product_info language file - and that's it! :D greetz J.J. I tried to do this - but then the page goes blank? Doing something wrong?
cometrulz Posted October 31, 2013 Author Posted October 31, 2013 I managed to use one of the addons mentioned above. Thanks for the info guys!
De Dokta Posted October 31, 2013 Posted October 31, 2013 <?php echo STOCK . $product_info['products_quantity']); ?> Sorry, my mistake! A bracket too much. <?php echo STOCK . $product_info['products_quantity']; ?> greetz J.J.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.