Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Total amount in stock


hadion

Recommended Posts

Hello,

 

I want to call the amount of products in stock on product_info.php, but i don't know how to do that.

 

@ the moment I got a php code which say in dutch:

 

Still "20" pieces of product x in stock.

 

How to call the amount from the database?

 

<?php if($listing['products_quantity']) { 
		  $voorraad = "<span class=\"status2\">Voorradig</span>";
		} else {
		  $voorraad = "<span class=\"status1\">Niet voorradig</span>"; 
		} 
		echo "<p class=\"assortiment\">Actuele status: " . $voorraad . "</p>\n"; ?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...