Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getProductAttributeAdminValue(Mage_Catalog_Model_Product $_product, $attributeCode)
- {
- $resModel = Mage::getResourceModel('catalog/product');
- $optionId = $resModel->getAttributeRawValue($_product->getId(), $attributeCode, 0);
- $_product->setData($attributeCode, $optionId);
- return $resModel->getAttribute($attributeCode)->setStoreId(0)->getFrontend()->getValue($_product);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement