Tag: product image.magento

Magento-Change product image according color attribute

Magento-Change product image according color attribute

Update ¬†your List.phtml code by this <?php // Grid Mode ?> <?php $_collectionSize = $_productCollection->count() ?> <?php $_columnCount = 4; ?> <?php $i=0; foreach ($_productCollection as $_product): ?> <?php if ($i++%$_columnCount==0): ?> <?php $_GET[“feather_color”]; ?> <?php $attribute = Mage::getSingleton(‘eav/config’)->getAttribute(‘catalog_product’, ‘feather_color’); if ($attribute->usesSource()) { $options = $attribute->getSource()->getAllOptions(false); foreach($options as $opt) { //echo “a”.$opt[‘label’]; //echo “b”.$opt[‘value’].'<br/>’; if($_GET[“feather_color”]==$opt[‘value’]) …

+ Read More