magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Media image attribute in product listing

Open tzyganu opened this issue 12 years ago • 7 comments

Is there any reason why I cannot set a product attribute with type 'Media Image' to be used in product listing?
When I create an attribute from Stores->Attribute->Products and select the Catalog Input Type for Store Owner to be Media Image the Frontend Properties tab disappears completely.
If I create the attribute like that and then change the value for the field used_in_product_listing in the catalog_eav_attribute table for the attribute I just created to 1 it works just fine. I have my attribute loaded in the product listing page.
Sometimes I may need an additional image attribute in the product listing. I cannot do that from the UI and I see no reason for it. A real use case: I want to have a rollover image. When hovering the product image I want to see a different image (with the backside of my product for example).

This problem exists in Magento 1 also. I hope it will be tackled at least in M2.

And while on this...please change the label of the attribute type field. Catalog Input Type for Store Owner sounds scary. Attribute type sounds more friendly.

tzyganu avatar Oct 14 '14 11:10 tzyganu

@tzyganu, thank you for reporting this to us! We will review this issue. At a brief glance looks like a bug. We will also consider your suggestion on renaming the field )

verklov avatar Nov 08 '14 20:11 verklov

Internal ticket: MAGETWO-30483

vpelipenko avatar Jan 29 '15 12:01 vpelipenko

Thank you for your submission.

We recently made some changes to the way we process GitHub submissions to more quickly identify and respond to core code issues.

Feature Requests and Improvements should now be submitted to the new Magento 2 Feature Requests and Improvements forum (see details here).

We are closing this GitHub ticket and have moved your request to the new forum.

piotrekkaminski avatar Aug 30 '16 20:08 piotrekkaminski

Still an issue....

Yonn-Trimoreau avatar May 10 '17 08:05 Yonn-Trimoreau

Hi. Came across this one will searching for a solution. Apparently not being able to add a new image attribute to a product is a feature.

https://github.com/magento/magento2/issues/7601

aeu avatar Oct 07 '18 11:10 aeu

This is still an issue in Magento 2.3.2. As a workaround you can set the used_in_product_listing option directly in the database for the new attribute.

fritzmg avatar Oct 10 '19 14:10 fritzmg

Hi @tzyganu. Thank you for your report. The issue has been fixed in magento/magento2#25566 by @engcom-Golf in 2.3-develop branch Related commit(s):

The fix will be available with the upcoming 2.3.5 release.

VladimirZaets avatar Nov 26 '19 03:11 VladimirZaets