Home / Magento / Magento 2 get custom category attribute

Magento 2 get custom category attribute

public function getCategoryCollection()
    {
        $collection = $this->_categoryCollection->create()
            ->addAttributeToSelect('*')
            ->addAttributeToFilter('is_home_category', '1');

        return $collection;
    }

About Sushil_kumar

Check Also

magento-log-setting

Optimize log table of magento database

Optimize log table of magento database Optimize Magento Database table is one of a very …

Leave a Reply

Your email address will not be published. Required fields are marked *

0

December 9, 2016

Clear all