Home Magento Customization

How to change background color of product image placeholder?

27 July 2009 3 Comments

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

You can find and edit this file:

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

find this code:

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

change the background to the color you prefer:


protected $_backgroundColor  = array(0, 0, 0); //black color

//protected $_backgroundColor  = array(0, 0, 255); //blue color

Clear cache and refesh the fontend to get your result.

Good work!

Related posts:

  1. Create a Color Switcher in Magento
  2. How to change URL key for category from Global into Storeview
  3. Simple product with custom options in grouped product in Magento
  4. Get product review info (independent) of review page
  5. Changing Product Tabs from JavaScript to CSS

3 Comments »

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree

Security Code: