Magento Themes and Magento Extensions

How To Create CSS Image Buttons In Your Magento Themes

Share
Posted on July 14th, 2011 | Posted by admin

Many developers and store owners don’t like to use images as buttons simply because they do not wish their users to wait until the images load. Image buttons gives the flexibility to display images as per store’s requirement but these days lots and lots of stores are opting to create CSS image buttons rather than image buttons. With a very little tweak you can get rid of image buttons in your theme and switch to CSS buttons. If you are willing to change your image buttons to CSS powered buttons then follow the steps given below:

Take a nice background image which is blank and nothing written on it. We will use this background image to generate text over it. Basically, if you follow CSS buttons you don’t have to create separate images for each button. Download the background image given below for an example (you can create your own image background).

Magento: New Extension Idea – Product Image Removal

Share
Posted on June 24th, 2011 | Posted by admin

As you most likely know, when you remove an image from a product, or delete a product, the image file actually stays in it’s place on the server. It is not removed. Rare is the case when I want the image to remain there if I am removing it from a product, or deleting a product. I would much rather it be deleted!

I’m thinking about writing a module that would allow you to easily enable or disable image deletion in these two cases. So, if you have it enabled, when you remove an image from a product, or delete a product, the image would be fully removed. Simple.

I’d like to try and gauge if Magento users would be interested in such an extension. If this sounds like something you’d be interested in, please comment and let me know. Feel free to add any additional ideas as well.

How to change background color of product image placeholder?

Share
Posted on May 6th, 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!

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!

Page 2 of 2«12