Your shopping cart is empty. Browse our Store

Magento

Open Source eCommerce Evolved

Get manufacturers (and any attribute) list

Last modified by sysk on Mon, May 5, 2008 20:23
Source|Old Revisions  

$product = Mage::getModel(’catalog/product’); $attributes = Mage::getResourceModel(’eav/entity_attribute_collection’) →setEntityTypeFilter($product→getResource()→getTypeId()) →addFieldToFilter(’attribute_code’, ‘manufacturer’) // This can be changed to any attribute code →load(false); $attribute = $attributes→getFirstItem()→setEntity($product→getResource()); /* @var $attribute Mage_Eav_Model_Entity_Attribute */ $manufacturers = $attribute→getSource()→getAllOptions(false);




 

Popular Wiki Tags  |  View all

Professional Services from the Magento Team

Professional Installation from the Magento Team

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien