I want get attribute by [attribute_group_code]. Please help me. My code is as follows:
<?php $product = $this->getProduct(); $attributeSetId = $product->getAttributeSetId(); $groupCollection = $this->groupCollectionFactory->create() ->setAttributeSetFilter($attributeSetId) ->setSortOrder() ->load(); foreach ($groupCollection as $group) : $attributes = $product->getAttributes(); echo "<pre>"; print_r ($group->getData()); echo "</pre>"; ?> Return : Array ( [attribute_group_id] => 21 [attribute_set_id] => 4 [attribute_group_name] => Operate [sort_order] => 3 [default_id] => 0 [attribute_group_code] => operate [tab_group_code] => ) // Get attrubte value , label <?php endforeach; ?> Thank you.