Posted By

ttscoff on 11/30/09


Tagged

php textmate magento


Versions (?)

Magento code to pull a single attribute set by name


 / Published in: Other
 

  1. <?php
  2. $entityTypeId = Mage::getModel('eav/entity')->setType('catalog_product')->getTypeId();
  3. $attributeSet = Mage::getResourceModel('eav/entity_attribute_set_collection')->setEntityTypeFilter($entityTypeId)->addFilter('attribute_set_name', 'Quantity');
  4. echo "<pre>";
  5. var_dump($attributeSet->getData());
  6. echo "</pre>";
  7. ?>

Report this snippet  

You need to login to post a comment.