Guest sparrowdog Posted October 23, 2005 Share Posted October 23, 2005 I want to be able to change the default setting on the Add Product page for the Use Stock Level from Yes to No. I found the file I need to change: admin/products/index.php and even found the snippet of code that relates to the stock level (below) but I do not know which piece of it to change. Anyone know? <tr> <td class="tdText"><strong><?php echo $lang['admin']['products']['stock_level2'];?><br /> </strong><?php echo $lang['admin']['products']['reduce_stock_level'];?> </td> <td class="tdText"><input name="stock_level" value="<?php if(isset($results[0]['stock_level'])) echo $results[0]['stock_level']; ?>" type="text" class="textbox" size="10"></td> </tr> Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted October 23, 2005 Share Posted October 23, 2005 Hi Remove the red text shown below, and insert the green text: <input name="useStockLevel" type="radio" value="1" <?php if(isset($results[0]['useStockLevel']) && $results[0]['useStockLevel']==1) { echo "checked='checked'"; } elseif(!isset($results[0]['useStockLevel'])) { echo "checked='checked'"; } ?>> <?php echo $lang['admin']['no'];?> <input name="useStockLevel" type="radio" value="0" <?php if(isset($results[0]['useStockLevel']) && $results[0]['useStockLevel']==0) echo "checked='checked'"; elseif(!isset($results[0]['useStockLevel'])) { echo "checked='checked'"; } ?>> Quote Link to comment Share on other sites More sharing options...
Guest sparrowdog Posted October 24, 2005 Share Posted October 24, 2005 Thank you. That's exactly what I was after. Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted October 24, 2005 Share Posted October 24, 2005 Cool :rolly: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.