Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Help With Stock Notification


Recommended Posts


Below code is what I have in admin/product_info.php, but I would like to add a text version in modules/product_listing.php, right under the product description. Can someone please help me with the code to add to the modules/product_listing.php file.


Thanks JR



<!-- Beginning Stock Level //-->



$prod_quantity = tep_get_products_stock($products_id);

if ($prod_quantity < 1) {

// out of stock

echo tep_image(DIR_WS_IMAGES . 'stock_soldout.gif');

} else {

// in stock

echo tep_image(DIR_WS_IMAGES . 'stock_instock.gif');





<!-- End Stock Level //-->

Link to comment
Share on other sites


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

  • Create New...