$productModel = Mage::getModel('catalog/product'); $attr = $productModel->getResource()->getAttribute("color"); echo $color_id = $attr->getSource()->getOptionId("Red");
No comments:
Post a Comment