Magento: Add static block
Posted by admin in Magento
Go to Magento admin uder CMS -> Static Blocks and Add New Block. Insert Block Title, Identifier (for example: my-new-block), set Status to Enabled, insert block Content and Save Block.
If you want to put your static block in left column open file /app/design/frontend/your_theme/your_theme/template/callouts/left_col.phtml and insert code below where you want the static block to apear:
<?php echo $this->getLayout()->createBlock(’cms/block’)->setBlockId(’my-new-block’)->toHtml() ?>
You can put this code wherever you want the block to apear, for exapmle right_col.phtml, 3columns.phtml, … Sky is your limit …
Magento: Change image background color
Posted by admin in Magento
If possible I always avoid modifing system core files, but in this case I couldn’t find any other solution. So to change your image background color open file /app/code/core/Mage/Catalog/Model/Product/Image.php and find:
protected $_backgroundColor = array(255, 255, 255);
and replace it with:
protected $_backgroundColor = array(0, 0, 0);
This will change the white background color to black. Change array(0, 0, 0) to whatever color you need.
Magento: How to activate new theme?
Posted by admin in Magento
Upload your new theme folders to right folders:
/app/design/frontend/new_theme/new_theme/
/skin/design/frontent/new_theme/new_theme/
Go to Admin Panel under System -> Design and click Add Design Change button. In Custom Design drop down menu select you new theme and save it.
That’s it, your new theme is activated!


