Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stock Quanity Added to Product Listings


gthomas2

Recommended Posts

I added stock quanity to my pages at www.cctrains.com, but I can't seem to get the /includes/module/product_listing.php to display the stock quanity. In red print is what I've added to my "special.php, product_info.php, and my new_product.php" and it works. When you click on any of the manufacturer's links it brings up the product listing page for that product with the url address ...../index.php?cpath=(admin/catalog item number) Is there somrthing I have to do in mysql to correct this problem?

 

 

?>
<table border="0" cellspacing="0" cellpadding="0" width="146" align="center">
<tr><td height="10"></td></tr>
<tr><td><?=$j[0][text]?></td></tr>
<tr><td height="13"></td></tr>
<tr><td>

<span class="tx4"><b><?=$j[1][text]?></b></span> [color="#FF0000"]<br><br />
<?php $product_stock= tep_get_products_stock($product_info['products_id']); ?> 
<span class="tx4">Products in stock: <b><?= $product_stock ?></b></span>[/color]

<br><span class="tx4">Price: <b><?=$j[2][text]?></b></span>
<br style="line-height:1px;"><br style="line-height:8px;"><a href="<?= tep_href_link("products_new.php","action=buy_now&products_id=".$new_p_id[$i-1])?>"><?=tep_image_button("button_add_to_cart.gif");?></a> <a href="<?=tep_href_link(
'product_info.php?products_id='.$new_p_id[$i-1])?>">
<?=tep_image_button("button_details.gif");?></a></td></tr>
			   </table>


<?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...