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.

| improve this question | | | | |
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

| improve this answer | | | | |
  • Hi, thanks for your reply I do that but it didn't worked – muzramn Mar 24 '18 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/… – Naveed Asim Mar 24 '18 at 13:01
  • doesn't work :( – muzramn Mar 25 '18 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))
    );
| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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