Posted On

How to Get Configurable Attribute for any Configurable Product in Magento 2.x

Posted By Praveen Maurya

We often get all child attributes of any configurable product instead of getting only configurable attribute (like Size, Color etc). So if we want to show all the variation of product on the search page, we can get array of configurable attribute using below code.. Output (is like): [color] Array ( [0]=>red [1]=>blue [2]=>green ) […]

read more