Monday, January 2, 2012

Remove Price from Custom Options

IF wana remove the price change indicators on the options of configurable products. The product shows the configurable options as a dropdown box at the moment.:

“Large +£20.00” and If want to just show the option name “Large”

You can easily remove by overriding the JS
Open the template file
catalog/product/view/type/options/configurable.phtml

Find the
   var spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>);

Replace with
 Product.Config.prototype.formatPrice = function(){
        return '';
    }
        var spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>);

No comments:

Post a Comment

Thankyou for your Comments

LinkWithin

Blog has moved, searching new blog...