Created
September 10, 2013 12:36
-
-
Save jreinke/6508802 to your computer and use it in GitHub Desktop.
Magento: get attribute id by code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$attributeId = Mage::getResourceModel('eav/entity_attribute') | |
->getIdByCode('catalog_product', 'color'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks man, just what I needed!