free
web stats

Fill the form & Get Installation Support

Connect With Us




captcha

Connect With Us




captcha

How to add category drop down in system configuration Magento 2?

For any custom module we can add category drop down selection in system configuration.

Let’s start with creating a module names Magemonkeys_Categorydropdown

in adminhtml we can create file system.xml

Here is code for call category selection

and then we can create file Categorylist.php in Magemonkeys\Categorydropdown\Model\Config\Source

That’s it.

Was this article helpful?
YesNo
Fill the below form if you have any Magento programming need.




captcha

Recent Articles

Author Info

Author Image

Hire P. Garchar

Get a Free Quote





captcha