How to Add Custom Entries To Admin System Configuration in Magento 2

Are you a Magento 2 developer that often tries his hands on developing extensions for custom functionalities? If so, you know how powerful is Magento 2’s admin configuration.

The custom module development may require to add custom entries to admin system configuration in Magento 2 under Stores > Configuration.

For example, creating custom dropdown or custom multi-select field as shown in the figure:

How to Add Custom Entries To Admin System Configuration in Magento 2 1

If you face a similar requirement, feel free to use the below solution:

Steps to add custom entries to admin system configuration in Magento 2:

  1. Create system.xml file at Vendor/Extension/etc/adminhtml/
  2. Create Custom.php file at Vendor/Extension/Model/Config/
  3. Create Multiselect.php file at Vendor/Extension/Model/Config/

That’s it to create the custom system.xml configuration in Magento 2.

Any doubts about creating custom system.xml configuration in your Magento 2 store can be mentioned in the Comments section below and I’d be happy to help!

Do share the solution with fellow developers via social media.

Thanks.
Meetanshi Contacts

5
(based on 7 Reviews)
How to Add Custom Entries To Admin System Configuration in Magento 2

Sanjay Jethva

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. Owing to his contributions in Magento Forums and posting solutions, he is among the top 50 contributors of the Magento community in 2019. When he is not engrossed with anything related to Magento, he loves to play cricket.

Leave a Reply

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