Thursday, 27 June 2019

Category Custom Attribute Value in magento2

1. Create Block file Attribute.php app/code/Category/CustomAttribute/Block/Attribute.php

<?php
/**
 * Ansar Husain
 * Category_CustomAttribute
 */

namespace Category\CustomAttribute\Block;

use Magento\Catalog\Api\CategoryRepositoryInterface;

/**
 * Class Attribute
 * @package  Category\CustomAttribute\Block
 */
class Attribute extends Template
{