Hi i am in new in opencart. I have code in product.tpl. i want remove the "price" in the option box selection.... If i remove the "price" in option box, it affect in price calculation i.e., finalpricevalue in header.tpl
I want solution
- hide the "price" in the option box (OR)
- Change the colour of "price" in the option box (OR)
- remove the "price" in product.tpl and assign value to "finalpricevalue" in header.tpl
product.tpl---->
<select name="option[<?php echo $option['product_option_id']; ?>]" width="300"style="width:200px">
<option value=""><?php echo $text_select; ?></option>
<?php foreach ($option['option_value'] as $option_value) { ?>
<option value="<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
<?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?>
</option>
<?php } ?>
</select>
header.tpl----->
var position1 = newPriceValue.indexOf("(");
var position2 = newPriceValue.indexOf(")");
position1 = position1+3;
var **finalPriceValue** = newPriceValue.substring(position1, position2);
var txt = newPriceValue;
txt = txt.replace(/,/g, '');
array=txt.match(/(?!$)\d+(\.\d+)/g);
Please help me......