Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $groupName = 'Product Attributes';
- $setId = 4;
- $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
- $entityTypeId = Mage::getModel('catalog/product')->getResource()->getTypeId();
- $setup->addAttributeGroup($entityTypeId, $setId, $groupName);
- echo $groupId = $setup->getAttributeGroup($entityTypeId, $setId, $groupName, 'attribute_group_id');
- exit
Add Comment
Please, Sign In to add comment