Responsive website a must ahead of the latest Google update

Responsive Design - A must have

With increasing competition and technological developments, it is indeed important for every business maker to maintain a competitive edge over others. And our favorite search engine ‘Google’ is no different from this league. After boosting over its announcement at the start of the New Year about the up-gradation in its search algorithms, Google recently unveiled its “mobile friendly responsive website update” which perhaps might not be seen as “friendly” move by all. (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);

Displaying Category name on Magento Product page

The trick is very simple and easy to do. Using the view.phtml file of your theme that can be found on app/design/frontend/your-package/your-theme/template/catalog/product/view.phtml. Open it and add the following code:

		foreach ($cats as $category_id) {
		$_cat = Mage::getModel('catalog/category')->setStoreId(Mage::app()->getStore()->getId())->load($category_id);
		echo $_cat->getName();             


Looking to Get Started?

We have an online project planner that is the most simpler way to
get your project started. Start a Project