Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product quantity on product info page


d4funky1

Recommended Posts

Posted

Hi,

 

I would like to show the product quantity on the main product info page.

 

How can i do this?

 

Many Thanks

D4

Posted

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.

Posted

this only shows the quantity on the product category page not the product info page???

 

Any ideas?

 

Thanks

D4

Posted

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

Posted
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...