$callSubCatVal = strtolower($_category->getResource()->getAttribute(‘call_to_action’)->getFrontend()->getValue($_category));
$callSubCat = 0;
if($callSubCatVal == ‘get sub categories listing’)
{
$callSubCat = 1;
}

 

Read how to create custom category attribute : http://www.webetutorial.com/question/magento-create-custom-attribute-for-category/

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.