Specifically, I'd like to set Requires Shipping to "No", and Subtract Stock also to "No". None of the products sold in this store will require shipping options, and I'm not using the quantity field for inventory control, but still need it to have a certain, static, number filled in. Allowing the quantity to drop each time a sale is made would mess me up a bit.
I tried taking a look at the /admin/view/template/catalog/product_form.tpl and found:
Code: Select all
<tr>
<td><?php echo $entry_subtract; ?></td>
<td><select name="subtract">
<?php if ($subtract) { ?>
<option value="1" selected="selected"><?php echo $text_yes; ?></option>
<option value="0"><?php echo $text_no; ?></option>
<?php } else { ?>
<option value="1"><?php echo $text_yes; ?></option>
<option value="0" selected="selected"><?php echo $text_no; ?></option>
<?php } ?>
</select></td>
</tr>
Code: Select all
<tr>
<td><?php echo $entry_shipping; ?></td>
<td><?php if ($shipping) { ?>
<input type="radio" name="shipping" value="1" checked="checked" />
<?php echo $text_yes; ?>
<input type="radio" name="shipping" value="0" />
<?php echo $text_no; ?>
<?php } else { ?>
<input type="radio" name="shipping" value="1" />
<?php echo $text_yes; ?>
<input type="radio" name="shipping" value="0" checked="checked" />
<?php echo $text_no; ?>
<?php } ?></td>
</tr>
I suppose I could just switch the order of the if/else options but I'm sure there's a better way.
OC Version 1.5.2.1