sportstolen Posted June 18, 2010 Posted June 18, 2010 Hi! I´ve got some problem with my stock functions. I´ve add a product and fill in "qty" 50 pieces and go to the catalog side and look at it it says out of stock, i´ve been checking around in the files and merged it i´with the original and i cant se that something in product_info is changed, in this section from product_info.php if i change the first "case" to 1 it shows in stock, but then it wont go out of stock hen the qty is 0, is there any other file wich i need to check? i suspect something with the database maybe. Thanks for any help! <td class="main" align="center"><?php $prod_quantity = tep_get_products_stock($products_id); switch ($prod_quantity) { case 0: // change this to a quantity you want - it's the for "available on request" print '<img src="images/stock_soldout.gif" border="0" align="absmiddle" title="" alt="' . AVAILABLE_ON_REQUEST . '"> ' . AVAILABLE_ON_REQUEST .''; break; case 1: // change this to a quantity you want - it's the number for "available within 10 workdays" print '<img src="images/stock_limitedstock.gif" border="0" align="absmiddle" title="" alt="' . AVAILABLE_WITHIN_10_DAYS . '"> ' . AVAILABLE_WITHIN_10_DAYS . ' </font>'; break; default: //if the quantity is not 1 or 0, this text will be shown. print '<img src="images/stock_instock.gif" border="0" align="absmiddle" title="" alt="' . AVAILABLE_FROM_STOCK . '"> ' . AVAILABLE_FROM_STOCK . ' </font>'; } ?><br>
hubcat Posted June 19, 2010 Posted June 19, 2010 Have you manually changed the product from out of stock to in stock using the Product Status choice on the Edit product page? Just adding quantity won't automatically make the product go in stock the first time. You still have to mark it as in stock. Adrienne
sportstolen Posted June 19, 2010 Author Posted June 19, 2010 Have you manually changed the product from out of stock to in stock using the Product Status choice on the Edit product page? Just adding quantity won't automatically make the product go in stock the first time. You still have to mark it as in stock. Adrienne yes i have, but i think is not with my host provider. im checking up on it right now
Recommended Posts
Archived
This topic is now archived and is closed to further replies.