Contact Us

  • Call Now:0161 670 6064
  • Email Adress:support@citricmedia.co.uk
  • Address Info:125 Greenleach Lane, Worsley, M28 2RS

Close Support

Support

Removing the + – £ price in dropdown options on configurable products Magento

Removing the + - £ price in dropdown options on configurable products Magento
  • 6
    May

Removing the + – £ price in dropdown options on configurable products Magento

This is really annoying problem and can be confusing for customers.

When you select a custom option on a product you can see +£3000 or -£3000 on the product display page.  works up to Magento 1.4 -1.9.2.4 not tested on 2.0 +

Before:

before

After:

remove_price-from-option-dropbox-magento

The Solution

Navigate to JS/Varien/configurable.js

goto line 249 and comment out like below using // shown in red

 

formatPrice: function(price, showSign){
    var str = '';
    price = parseFloat(price);
    if(showSign){
        if(price<0){
            //str+= '-';
            price = -price;
        }
        else{
            //str+= '+';
        }
    }

    var roundedPrice = (Math.round(price*100)/100).toString();

    if (this.prices && this.prices[roundedPrice]) {
        //str+= this.prices[roundedPrice];
    }
    else {
        //str+= this.priceTemplate.evaluate({price:price.toFixed(2)});
    }
    return str;
},

Comments are closed.