In this post I am going to explain how to Set Default Values for System Configuration Fields in Magento 2. First we will make one “system.xml” file at below path. Path: app/code/<vendor>/<module>/etc/adminhtml/system.xml <?xml version=”1.0″ ?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Config:etc/system_file.xsd”> <system> <tab id=”ht” translate=”label” sortOrder=”999999″> <label>HT</label> </tab> <section id=”mymodulesection” translate=”label” type=”text” sortOrder=”30″ showInDefault=”1″ showInWebsite=”1″ showInStore=”1″> <class>separator-top</class> <label>My…


Recent Comments