0

please see here enter image description here

how to remove that from drop-down? while at the same time if we choose this option the original price will change as well.

2 Answers 2

1

in order to remove that additional price entirely you have to over write functionality of below script:

/app/code/core/Mage/Catalog/Block/Product/View/Options/Type/Select.php

GO to line number : 70 and change the code with this code snippet :

From :

$select->addOption(
            $_value->getOptionTypeId(),
            $_value->getTitle() . ' ' . $priceStr . '',
            array('price' => $this->helper('core')->currencyByStore($_value->getPrice(true), $store, false))
        );

To :

$select->addOption(
            $_value->getOptionTypeId(),
            $_value->getTitle() /*. ' ' . $priceStr . ''*/,
            array('price' => $this->helper('core')->currencyByStore($_value->getPrice(true), $store, false))
        );

you will find workaround this block, hope it will help

3
  • Hi, thanks for your reply I do that but it didn't worked
    – muzramn
    Mar 24, 2018 at 11:31
  • make sure your overridden code is working and file is being called, however if that doesnet work then you would also need to change in js file : check this link templatemonster.com/help/… Mar 24, 2018 at 13:01
  • doesn't work :(
    – muzramn
    Mar 25, 2018 at 7:33
0

I registered just to say thank you to Naveed. I was going to just add a comment on their post, but I can't as a new user. So to anyone wanting the correct answer, his answer is correct except there is a space in his code causing it to not work.

$select->addOption(
        $_value->getOptionTypeId(),
        $_value->getTitle() /*. ' ' . $priceStr . ''*/,
        array('price' => $this->helper('core')->currencyByStore($_value->getPrice(true), $store, false))
    );

Should be

$select->addOption(
        $_value->getOptionTypeId(),
        $_value->getTitle()/*. ' ' . $priceStr . ''*/,
        array('price' => $this->helper('core')->currencyByStore($_value->getPrice(true), $store, false))
    );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.