Magento – ‘Yes/No Attribute’ in magento – how to get text value for a store view

magento-1.7product-attributestore-view

I wonder how I can get value of an yes/no attribute for a specifical store view in magento.

I've tried that way:

$store_vies_val = Mage::getResourceModel('catalog/product')->getAttributeRawValue($product_id, 'store_view_attr', $store_id);

but it returns nothing on displaying.

Thanks a lot for your answers!

Best Answer

I've found a solution:

$custom = Mage::getModel('catalog/product')->load($prod_id);
$store_vies_val = $custom->getAttributeText('store_view_attr');
if (($store_vies_val == 'No'){
...
}