Skip to content

Instantly share code, notes, and snippets.

@ryaan-anthony
Created August 19, 2013 02:46
Show Gist options
  • Save ryaan-anthony/6265393 to your computer and use it in GitHub Desktop.
Save ryaan-anthony/6265393 to your computer and use it in GitHub Desktop.
Get all options for $attr
$options = Mage::getModel('eav/config')
->getAttribute('catalog_product', $attr)
->getSource()
->getAllOptions(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment