public function getGroupIdUsingSetId($attribute_group_name, $attributeSetId) { $entityTypeId = $this->getEntityTypeId(); $installer = $this->getInstaller(); //new Mage_Eav_Model_Entity_Setup(‘core_setup’); $attributeGroupObject = new Varien_Object($installer->getAttributeGroup($entityTypeId, $attributeSetId, $attribute_group_name)); return $attributeGroupId = $attributeGroupObject->getAttributeGroupId(); }