Skip to content

Instantly share code, notes, and snippets.

@rintoug
Created May 21, 2017 07:26
Show Gist options
  • Select an option

  • Save rintoug/df9bc754bacb13c3ab5371ffcc8d8028 to your computer and use it in GitHub Desktop.

Select an option

Save rintoug/df9bc754bacb13c3ab5371ffcc8d8028 to your computer and use it in GitHub Desktop.
How to get attribute option label/attribute text with option_id?
<?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