I need to add a custom attribute into the tabs.phtml file but when I do:
<?php
$_product = $this->getProduct();
echo $_product->getData('color_availability');
?>
It throws me the following error:
Fatal error: Call to a member function getData() on a non-object in /var/www/vhosts/website.co.uk/httpdocs/app/design/frontend/customtemplate/default/template/catalog/product/view/tabs.phtml on line 102
$_product is NULL.
What am I missing here? Can anybody help me with this?