Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stock Levels Not Showing On product_info.php


d4funky1

Recommended Posts

Hi,

 

I have enabled the Display Stock Quantity in the admin panel but it is not showing on the product description page?

 

I have been here before and can remember someon telling me about a line of code that needed to be inserted into the product_info.php page, however, the search function here is not returning any results for me.

 

Can anyone confirm what code is required to display the product quantity on the products description page?

 

Many Thanks

D4

Link to comment
Share on other sites

Hi,

 

It's ok problem solved.

 

Quick Fix

 

Add this to product_info.php

 

<?php

// BOF: WebMakers.com Added: Shoppe Enhancement Controller

// show product in stock qty

if (SHOW_PRODUCTS_INFO_INSTOCK=='1') {

?>

 <tr>

   <td colspan="2" class="main" align="right">In Stock: <?php echo tep_get_products_stock((int)$HTTP_GET_VARS['products_id']); ?></td>

 </tr>

<?php

}

// BOF: WebMakers.com Added: Shoppe Enhancement Controller

?>

 

add this to english.php

 

define('SHOW_PRODUCTS_INFO_INSTOCK','1');

 

I can take no credit for this whatsoever.

 

Many Thanks

D4

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...