https://github.com/aligent/magento-attribute-option-image
Magento extension to add images to product attribute options.
https://github.com/aligent/magento-attribute-option-image
Last synced: about 1 year ago
JSON representation
Magento extension to add images to product attribute options.
- Host: GitHub
- URL: https://github.com/aligent/magento-attribute-option-image
- Owner: aligent
- Archived: true
- Created: 2012-03-20T07:18:25.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2016-11-25T07:42:52.000Z (over 9 years ago)
- Last Synced: 2025-03-25T05:53:42.950Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 218 KB
- Stars: 31
- Watchers: 56
- Forks: 45
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Add images/icons to attribute options of your Magento products

## Features
* Associate image/icon to attribute options
* Specify relative/external url or pick an image from Magento Media Gallery
## Installation
### Magento CE 1.5.x, 1.6.x
Install with [modgit](https://github.com/jreinke/modgit):
$ cd /path/to/magento
$ modgit init
$ modgit clone attr-opt-img https://github.com/jreinke/magento-attribute-option-image.git
or download package manually:
* Download latest version [here](https://github.com/jreinke/magento-attribute-option-image/downloads)
* Unzip in Magento root folder
* Clean cache
## Usage
1. Go to *Catalog > Attributes > Manage Attributes*, choose an attribute with options and associate an image/icon to each option
2. In frontend templates, retrieve image src like this `Mage::helper('attributeoptionimage')->getAttributeOptionImage($optionId);` where `$optionId` could be something like `$product->getColor()`
## Full overview
I wrote an article on my blog for full extension overview, [click here](http://www.johannreinke.com/en/2012/02/05/magento-add-images-to-product-attribute-options/).