Thursday, July 28, 2022

[FIXED] How do I get image url of attribute option in Magento?

Issue

How do I get an image URL of an attribute option in Magento?

For example, we have attribute 'manufacturer' with options LG, Philips etc. Attribute options in Magento have a personal field for an image. I want to use that image as the logo of the manufacturer. How do I display that image on the product page?


Solution

Let me clarify - are you talking about Attributes (configured at admin panel: Catalog -> Attributes -> Manage Attributes) or about Custom Options (configured at admin panel: Catalog -> Manage Products -> select product -> Custom Options)?

Both do not have personal field for an image. That is why your question is quite confusing. Is it possible, that you have some custom extension installed, which provides that image functionality? If it is true, then you need to contact the extension's author, because only the author knows a proper method to use.

Just some references for your information:



Answered By - Andrey Tserkus
Answer Checked By - Mary Flores (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.