I have created a new category attribute using a setup script and now it is showing on the backend and assigned values (it is just a boolean attribute). the attribute name on EAV entity table is is_home_category
.And now I'm trying to get its values on frontend
$categories = $this->getStoreCategories(true, true, true);
foreach ($categories as $category):
echo $category->getIsHomeCategory()
endforeach;
But it returns nothing , could someone help me
Best Answer
Proper way is to in the Install/Upgrade script:
also on the collection do:
and then in the template you can just call:
If still not work run below command: