Magento code to pull a single attribute set by name

/ Published in: Other
Save to your folder(s)

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.