Magento – Magento 2 add extra image Type/Role

custom-fieldimagemagento2productrole

How can we add extra field in image role in product page admin panel.

I want to add new field same as thumbnail in Image role popup.

http://awesomescreenshot.com/0e467tlo04

Best Answer

You have to just add image role using create image attribute from

Stores -> Attribute -> Product

Click on Create new attribute.

Set Catalog Input type for store owner is Media Image

Save Attribute. enter image description here

Now set above attribute in Attribute Set like default.

Run command php bin/magento indexer:reindex

Related Topic