OpenCart: Standard Opium theory (North from Warehouse)
How do OpenCart: 188.8.131.52 on the standard have the value of the option to deduct from the warehouse?
\admin\controller\catalog\product.php approximately line 869 $this-statedata['subtract'] = 1; change to $this-statedata['subtract'] = 0;
I've tried it, too.
html += ' <td class="left"><select name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][subtract]">'; html += ' <option value="1"><?php echo $text_yes; ?></option>'; html += ' <option value="0"><?php echo $text_no; ?></option>'; html += ' </select></td>';
It doesn't help, it's always about "yes."
Alberto last edited by
In the file.
$data['subtract'] = 1;
$data['subtract'] = 0;
Consider that it's default, that parameter has to be wrapped in manual or through OBD, or imported, as a matter of fact.