Web Analytics

Fill the form & Get Installation Support

    Here, we will discuss about how to add custom attribute in Magento 2 Category section.

    I have created a custom module to add boolean type custom attribute.

    Here, I have used MageMonkey as vendor and CustomCategorySettings as the module name.

    Please follow below steps:

    1. Create MageMonkey/CustomCategorySettings directories in app/code

    2. Create registration.php file at app/code/MageMonkey/CustomCategorySettings/ and add following code:

    3. Create module.xml file at app/code/MageMonkey/CustomCategorySettings/etc/ and add following code:

    4. Create InstallData.php file at app/code/MageMonkey/CustomCategorySettings/Setup/ and add following code:

    5. Create category_form.xml file at app/code/MageMonkey/CustomCategorySettings/view/adminhtml/ui_component/ and add following code:

    6. Run following commands to enable this custom module.

    php bin/magento setup:upgrade
    php bin/magento cache:clean
    php bin/magento cache:flush

    Now, you can see in Magento 2 Admin > Catalog > Category

    There will be a tab group “Custom Settings” in admin category as shown below.

    Fill the below form if you have any Magento programming need.

      Recent Articles

      Author Info

      Author Image

      Magento Certified Developer

      Hire V. Brahmbhatt

      Get a Free Quote

        Let our Magento expert connect to discuss your requirement.

          We offer Magento
          certified developers.

          Our Magento clientele
          is 500+.

          We sign NDA for the
          security of your projects.

          We’ve performed 100+
          Magento migration projects.

          Free quotation
          on your project.

          Three months warranty on
          code developed by us.