5 Reasons to Develop Your Ecommerce Website with Magento

Ccommerce Software Usages

With a business presence on the web world, chances of getting globalized brighten. It is the fashion of eCommerce functionality that is gaining pace and is spreading like a fire in the forest. In the wake of reaching to a maximum amount of clients, companies are grabbing opportunities to move their attention towards eCommerce website development that help them in patronizing global reputation. (more…)

Remove decimals from configurable product option price update script in Magento

Many time you need to remove decimal places from magento prices. In this post we going to check the code that can be used to remove decimal places when price is updated by selection of configurable product options –

in file js/varien/product.js about line 773:

change this:

formatPrice: function(price) {
            return formatCurrency(price, this.priceFormat);
        }

to this:

formatPrice: function(price) {
        this.priceFormat.requiredPrecision = 0;
        return formatCurrency(price, this.priceFormat);
    }

Categories