Magento Forum

Image Atrribute not working
 
SquareNetMedia
Jr. Member
 
Total Posts:  22
Joined:  2012-04-29
 

Ive created a new media attribute call brand image, but when Ive entered the following code on list.html its not showing.

Any ideas where I have gone wrong. I am using Magento Communutity 1.7

<?php if($_product->getBrandImage()): ?>
<?php 
echo $this->helper(\\\\\\\\\\\\\\\'catalog/image\\\\\\\\\\\\\\\')->init($_product,\\\\\\\\\\\\\\\'brand_image\\\\\\\\\\\\\\\')->resize(240,186); ?>
<?php 
endif; ?>
 
Magento Community Magento Community
Magento Community
Magento Community
 
gskacha
Jr. Member
 
Total Posts:  21
Joined:  2011-01-06
 

Hi
Did you enable “Used in Product Listing” from admin side in manage attribute.
If no...then edit BrandImage attribute and make YES in this field.
Refresh Cache and do Re-Indexing..then check....

 
Magento Community Magento Community
Magento Community
Magento Community
 
SquareNetMedia
Jr. Member
 
Total Posts:  22
Joined:  2012-04-29
 

Thanks - I forgot to make sure the show on products was selected to YES

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top