Get Media/Image Attribute list from given Attribute set Magento 2.

You can fetch a list of image attribute from the current attribute set using Magento 2.

If you want to know about all the image attribute created for the given attribute set, You can find out all the image attributes for an attribute set.

Retrieve the list of media/image attributes whose fronted input type is media_image assigned to the given attribute set using below way. Continue reading “Get Media/Image Attribute list from given Attribute set Magento 2.”

Get is_comparable attribute list programmatically in magento 2.

Magento 2 Compare product is one of the native feature available with Out of the box. You can compare multiple products from listing and product page with a click on compare link.

If you want to know about get all the is_comparable attribute list using programmatically you need to use Magento\Eav\Api\AttributeRepositoryInterface Interface. Continue reading “Get is_comparable attribute list programmatically in magento 2.”

Magento 2 Get layered navigation filterable attributes list.

Magento 2 Get all the attribute list which are used in Layered Navigation in category page and search page.

You can get all the filterable attribute list by Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory class.

The result will be all those attributes which have, Use in Layered Navigation status are Filterable (with results) or Filterable (no results). Continue reading “Magento 2 Get layered navigation filterable attributes list.”