d4funky1 Posted August 29, 2006 Posted August 29, 2006 Hi, I would like to show the product quantity on the main product info page. How can i do this? Many Thanks D4
PD_Steve Posted August 29, 2006 Posted August 29, 2006 Go into Admin Then navigate to configuration, product listing and set the relevant sort order for "Display Product Quantity". Anything over sort order 0 will make this appear. Steve My Toolbox: Crimson Editor, Adobe Photoshop CS2.0, Expression Web, Macromedia Suite 8.0, Cinema 4D, Nvu.
d4funky1 Posted August 29, 2006 Author Posted August 29, 2006 this only shows the quantity on the product category page not the product info page??? Any ideas? Thanks D4
lwindridge Posted August 31, 2006 Posted August 31, 2006 I placed this line in product_info.php near the bottom - seems to work fine for me.. <tr> <td class="main">Quantity in Stock <?php echo product_info['products_quantity']; ?></td> </tr> You can see how it works at http://www.jimparts.co.uk
d4funky1 Posted August 31, 2006 Author Posted August 31, 2006 I've just tried your method and I keep getting presented with the following error: Parse error: parse error, unexpected '<' in /catalog/product_info.php on line 298 Line 298 being where the <td class="main">Quantity in Stock <?php echo product_info['products_quantity']; ?></td> is placed??? Any Ideas Anyone??? Many Thanks D4
Guest Posted September 1, 2006 Posted September 1, 2006 I placed this line in product_info.php near the bottom - seems to work fine for me.. <tr> <td class="main">Quantity in Stock <?php echo product_info['products_quantity']; ?></td> </tr> You can see how it works at http://www.jimparts.co.uk try putting a $ before the product_info to get $product_info the code to put to it into to make it appear under the heading is as follows <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading" valign="top"><?php echo $products_name; ?></td> <td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?> </tr><td class="main">Quantity in Stock <?php echo $product_info['products_quantity']; ?></td> </table></td> Works for me Good fix, thanks lwindridge
Recommended Posts
Archived
This topic is now archived and is closed to further replies.