PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, July 28, 2022

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

 July 28, 2022     attributes, image, magento     No comments   

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:

  • You can check this tutorial and free custom extension, which adds images to the dropdown Attributes. It displays images at frontend.
  • You can check this solution at MagentoCommerce.com public forum, which will help you to add images to Custom Options.


Answered By - Andrey Tserkus
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing