We needed to have out of stock products show for configurable products. I have managed to get this working all ok, however I have a custom attribute called fulfilment which is a select option for the products so you can set an out of stock message such
Available in 7 days etc.
I need to get the attribute text in
app/code/local/ModuleCompany/ModuleName/Block/Catalog/Product/View/Type.php but don't seem to be able to however I try.
getJsonConfig() method I try
$custom_stock_attribute = Mage::getModel('catalog/product')->load($currentProduct->getId())->getAttributeText('fulfilment');
But just can't seem to get it working. So the question is how do you get attribute value of a select field from a module?
Magento Version: 220.127.116.11