5 (100%) 2 votes

Allow me to share the actual steps that you’re going to do  in this How to Insert a New Tab in User Editing Page in Magento 2:

  1. Create the file \app\code\Magestore\InventorySuccess\

etc\adminhtml\events.xml

  1. Create the file  \app\code\Magestore\InventorySuccess\Observer\

Permission\Warehouse\ViewBlockAbstractToHtmlBefore.php

In this topic, we will try to insert a new tab in to user editing page in magento 2. We will use the event view_block_abstract_to_html_before to do it:

Step 1:

We need to create the file

\app\code\Magestore\InventorySuccess\etc\adminhtml\events.xml:

Step 2:

We will create the file \app\code\Magestore\InventorySuccess\Observer\Permission\

Warehouse\ViewBlockAbstractToHtmlBefore.php to call the tab that we want to insert:

And then, you will see it like :

insert a new tab
insert a new tab

The 2 steps I mention above is the shortest process for you to Insert a New Tab in User Editing Page in Magento 2. With this guide, you can manage new tab in Magento 2 easily. Every store has a New Tab in User Editing Page in Magento 2 with many attributes.

Thank you for reading this post. Good luck to you!

Your Magento website needs a powerful Magento ERP for stock control.

DON'T MISS THE CHANCE!

magento erp

How to Create a Module in Magento 2
How to Add a Custom Template into UI Component Fieldset in Magento 2

Leave a Reply

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