Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save St0iK/e9eb93b1fd5e3a716ec46c68b7606cf7 to your computer and use it in GitHub Desktop.

Select an option

Save St0iK/e9eb93b1fd5e3a716ec46c68b7606cf7 to your computer and use it in GitHub Desktop.
/**
* Retrieve the ID of the specification attribute group.
*
* @param ProductModel $product
* @return int
*/
protected function _getSpecificationAttributeGroupId(ProductModel $product)
{
$attributeSetId = $product->getAttributeSetId();
$groupId = $this->catalogConfig->getAttributeGroupId(
$attributeSetId,
self::ATTRIBUTE_GROUP_NAME_SPECIFICATION
);
return $groupId;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment