Magento2: Media image attribute in product listing

Created on 14 Oct 2014  路  7Comments  路  Source: magento/magento2

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.

Fixed in 2.3.x Format is not valid Ready for Work improvement

All 7 comments

@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 )

Internal ticket: MAGETWO-30483

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.

Still an issue....

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

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.

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.

Was this page helpful?
0 / 5 - 0 ratings