Jump to content

Add product page - set Use Stock Level default


Guest sparrowdog

Recommended Posts

Guest sparrowdog

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>

Link to comment
Share on other sites

Guest estelle

Hi :rolly:

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'"; } ?>>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...