Created
May 21, 2017 07:26
-
-
Save rintoug/df9bc754bacb13c3ab5371ffcc8d8028 to your computer and use it in GitHub Desktop.
How to get attribute option label/attribute text with option_id?
This file contains hidden or 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 | |
| $product = Mage::getModel('catalog/product')-load(1000) //1000 is product id | |
| $brandText = $product->getAttributeText('brand'); | |
| print $brandText |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment