Guest User

Untitled

a guest
Jan 24th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. $groupName = 'Product Attributes';
  2. $setId = 4;
  3.  
  4. $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
  5. $entityTypeId = Mage::getModel('catalog/product')->getResource()->getTypeId();
  6. $setup->addAttributeGroup($entityTypeId, $setId, $groupName);
  7.  
  8. echo $groupId = $setup->getAttributeGroup($entityTypeId, $setId, $groupName, 'attribute_group_id');
  9. exit
Add Comment
Please, Sign In to add comment