by addressing this important bug issue. Some users also reported an odd problem regarding the output of the '+' sign versus the '-' sign. The reason this problematic occurs is due to a decline methodology prevented by mySQL.
Here are the proper corrections in order to get rid of these problems:
In admin/view/template/catalog/product_form.tpl file,
find all instances of:
Code: Select all
<?php if ($product_option_value['price_prefix'] == '+') { ?>
<?php if ($product_option_value['weight_prefix'] == '+') { ?>
Code: Select all
<?php if ($product_option_value['price_prefix'] == 'a') { ?>
<?php if ($product_option_value['weight_prefix'] == 'a') { ?>
Code: Select all
<?php if ($product_option_value['price_prefix'] == '-') { ?>
<?php if ($product_option_value['weight_prefix'] == '-') { ?>
Code: Select all
<?php if ($product_option_value['price_prefix'] == 's') { ?>
<?php if ($product_option_value['weight_prefix'] == 's') { ?>
Code: Select all
<option value="+"
Code: Select all
<option value="add"
Code: Select all
<option value="-"
Code: Select all
<option value="subtract"
find all instances of:
Code: Select all
if ($option_value_query->row['price_prefix'] == '+') {
if ($option_value_query->row['weight_prefix'] == '+') {
Code: Select all
if ($option_value_query->row['price_prefix'] == 'a') {
if ($option_value_query->row['weight_prefix'] == 'a') {
Code: Select all
} elseif ($option_value_query->row['price_prefix'] == '-') {
} elseif ($option_value_query->row['weight_prefix'] == '-') {
Code: Select all
} elseif ($option_value_query->row['price_prefix'] == 's') {
} elseif ($option_value_query->row['weight_prefix'] == 's') {
find all instances of:
Code: Select all
<?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?>
Code: Select all
<?php if ($option_value['price']) { ?>
<?php if ($option_value['price_prefix'] == 'a') { ?>
(+<?php echo $option_value['price']; ?>)
<?php } elseif ($option_value['price_prefix'] == 's') { ?>
(-<?php echo $option_value['price']; ?>)
<?php } ?>
<?php } ?>
Code: Select all
<td><label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><img src="<?php echo $option_value['image']; ?>" alt="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" /></label></td>
Code: Select all
<td><label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><img src="<?php echo $option_value['image']; ?>" alt="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . ($option_value['price_prefix'] == 'a' ? '+' . $option_value['price'] : '-' . $option_value['price']) : ''); ?>" /></label></td>