cancel
Showing results for 
Search instead for 
Did you mean: 

Acces to the attribute Image

SOLVED

Acces to the attribute Image

Hi,

I'm using a color attribute with images. I want to personalize the filter with the color image.

But I dont' know how acces to the attribute image url.

 

Thanks!

Gerard.

2 REPLIES

Re: Acces to the attribute Image

Hi @gpifarre,



I am not sure if I understood your question.

If you are trying to get the thumbnail image for a product, you can use this code:

Mage::helper('catalog/image')->init($product, 'thumbnail');

 

Best regards.

Gabriel 

If my answer was useful, please give "Kudos" to this post.
If my answer helps you to resolve the problem, click on "Accept as Solution".

Re: Acces to the attribute Image

Hi @gpifarre

 

Please use configurable swatches available in magento and set-up properly. Also use this link for reference

https://www.templatemonster.com/help/magento-how-to-add-and-manage-configurable-swatches.html#gref

Let me know if it helps. You can raise a KUDOS if its really worth for you. Also if it solves your problem then please mark as SOLUTION.