sergiojg Posted May 8, 2015 Share Posted May 8, 2015 Hi !! i need to add the available quantity on product page because people don't know how many they can buy. any idea of how to do it ? thanks Link to comment Share on other sites More sharing options...
♥bruyndoncx Posted May 8, 2015 Share Posted May 8, 2015 echo $product_info['products_quantity'] where you want it to show up KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt Link to comment Share on other sites More sharing options...
sergiojg Posted May 9, 2015 Author Share Posted May 9, 2015 thanks and how can i add a text before saying Available Quantity ? thanks again Link to comment Share on other sites More sharing options...
♥bruyndoncx Posted May 9, 2015 Share Posted May 9, 2015 echo 'Available Quantity ' . $product_info['products_quantity']; on a separate line, you need the ; to end the line KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt Link to comment Share on other sites More sharing options...
sergiojg Posted May 9, 2015 Author Share Posted May 9, 2015 Thank You !! Link to comment Share on other sites More sharing options...
ericattack Posted May 13, 2015 Share Posted May 13, 2015 Hi, can you give me a little more info on this? In what file and where do I punt this code? I'm using osc 2.3.4 bootstrap and am having troubles adding stock levels. The standard admin options dont seem to work. I would like to show green/orange/red stock bars next to the product. Link to comment Share on other sites More sharing options...
burt Posted May 13, 2015 Share Posted May 13, 2015 Support Your Coders, Day 6 of 28DofC. Alternative is to build yourself a content module (good), or to hardcode (bad) it in the old fashioned way ( example code at http://www.clubosc.com/show-stock-availability-in-oscommerce-product-info.html ) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.