Magento 2: Add new button on Category Edit Page in Admin Panel
For this example we will assume you have a custom module. Let's call it Namespace_Module.
Now, create files as below:
Namespace_Module\view\adminhtml\ui_component\category_form.xml
Namespace_Module\Block\Adminhtml\Category\Edit\Button\AssignButton.php
Namespace_Module\Controller\Adminhtml\Category\Assign.php
Voila !! That's it. Now, clear all caches and check the category page in admin panel. There will be a new button called "Assign".
Now, create files as below:
Namespace_Module\view\adminhtml\ui_component\category_form.xml
Namespace_Module\Block\Adminhtml\Category\Edit\Button\AssignButton.php
Namespace_Module\Controller\Adminhtml\Category\Assign.php
Voila !! That's it. Now, clear all caches and check the category page in admin panel. There will be a new button called "Assign".
Comments
Post a Comment