$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/

Your Answer
Sign In
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.