HOWTO remove + and - prefix in product option price

 

Store owners some times want to hide the + (PLUS) and the - (MINUS) prefix that is shown along with the product options.

You can do this with a simple template override.

Step 1:
Copy

/components/com_k2store/views/mycart/tmpl/addtocart_options.php

to

/templates/<YOUR_TEMPLATE>/html/com_k2store/mycart

NOTE: if you dont find a com_k2store directory in your template's html folder, create it

Step 2:

Now edit

/templates/<YOUR_TEMPLATE>/html/com_k2store/mycart/addtocart_options.php

Find the following code and REMOVE them. You will find this code at three places( Line number 36, 62, 90)

<?php echo $option_value['product_optionvalue_prefix']; ?>

Save the file.

Now you will not see the + and - prefixes in product options.