Magento Themes and Magento Extensions

How to change background color of product image placeholder?

Share
Posted on May 5th, 2011 | Posted by admin

This is a simple magento tips but there are many people have asked for.

You can find and edit this file:

1.magento\app\code\core\Mage\Catalog\Model\Product\Image.php

find this code:

1.protected $_backgroundColor = array(255, 255, 255); //white background

change the background to the color you prefer:

1.protected $_backgroundColor = array(0, 0, 0); //black color
2.
3.//protected $_backgroundColor  = array(0, 0, 255); //blue color

Clear cache and refesh the fontend to get your result.

Good work!

Magento Menu Customization with Product List

Share
Posted on May 4th, 2011 | Posted by admin

Magento Menu Customization with Product List

Root Category → Category → Sub-Category

We will customise the menu to show the Products of a category/su-bcategory along with its hierarchy in dropdown menu as seen below.

This is a good feature if you have less products in a website.

In order to implement the above structure, we need to modify the navigation.php file of drawItem() function like below. The navigation.php is available in the following location,

Page 7 of 7« First...«34567