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-2-architecture-diagram

Magento 2 Architecture Diagram

Magento 2 is the latest CMS (MVC)  Platform of the leading enterprise-class eCommerce platform, utilised by …

Leave a Reply

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

0

February 23, 2017

Clear all

Warning: Cannot modify header information - headers already sent by (output started at /home/u797196687/public_html/wp-content/themes/sushil/framework/functions/common-scripts.php:623) in /home/u797196687/public_html/wp-content/plugins/wppush-push-notifications/WPPush.php on line 274