Page 1 of 1
Hide +($XX.XX) from option drop down
Posted: Fri Oct 12, 2012 5:28 am
by pappley
I'm trying to hide the price increases next options in drop down box on a product page. I can delete it:
(see original thread:
http://forum.opencart.com/viewtopic.php?t=82023)
but when I do that it also deletes the auto update price that I have now (it updates price based on option selected)
All I'm trying to do is hide the =($XX.XX) that is added next to each option without disabling the effect on live update.
Re: Hide +($XX.XX) from option drop down
Posted: Fri Oct 12, 2012 2:43 pm
by SXGuy
Catalog/view/theme/product/product.tpl
Look around line 73
Code: Select all
<?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?>
replace with
Code: Select all
<!-- <?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?> //-->
if that doesnt work, just delete the lines instead.
Remember to make a backup first.
Re: Hide +($XX.XX) from option drop down
Posted: Mon Jun 20, 2022 11:43 pm
by Satya - Safiramedia
SXGuy wrote: ↑Fri Oct 12, 2012 2:43 pm
Catalog/view/theme/product/product.tpl
Look around line 73
Code: Select all
<?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?>
replace with
Code: Select all
<!-- <?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?> //-->
if that doesnt work, just delete the lines instead.
Remember to make a backup first.
heyy dude... that's script doesn't work now?? please update script until works again please... i need thiss topic clear.
Re: Hide +($XX.XX) from option drop down
Posted: Mon Jun 20, 2022 11:51 pm
by paulfeakins
Hi pappley, feel free to drop us an email for a quick estimate:
info@antropy.co.uk