May 9, 2020 Yogesh Khasturi

How to Add Custom Product Attribute in the Category Page of Admin in Magento2?

In this blog post, we discussed adding the custom product attribute in the category page of admin in Magento 2. In the last post, we have explained how to import product data programmatically in magento-2.

The default Magento 2 permits adding columns of the product attribute. you can use the below code which is useful for optimized backend performance. Now let’s see the following steps:

Step-1 Create di.xml file :

Fileapp\code\Webiators\AdminCategoryProduct\etc\di.xml

Step-2 Create Product.php file :

Fileapp/code/Webiators/AdminCategoryProduct/Block/Adminhtml/Category/Tab/Product.php

That’s all about add custom product attributes in the category page of admin in Magento 2.

If you want to download this extension from Github, check here.

Any questions about this topic please mention them in the comment section below.

Thank you.