Add Default Values to System Configuration Fields

Add the following snippet to your
Namespace/Module/etc/config.xml file.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0"?>
<config>
    ...
    <default>
        <sectionname>
            <groupname>                
                <fieldname>My Default Value</fieldname>         
            </groupname>
            <anothergroupname>
                <fieldname>My Default Value</fieldname>
                <fieldname>My Default Value</fieldname>
            </anothergroupname>
        </sectionname>
    </default>
    ...
</config>
ShareShare on Facebook0Tweet about this on TwitterShare on Google+0Share on LinkedIn0Share on Reddit0Share on StumbleUpon0

Published by

Paul Donnelly

Hi I'm Paul, an avid Magento Developer from Northern Ireland. With almost 8 years of Magento experience under my belt, I still have a strong passion for it. By day I work as a Senior Ecommerce Developer for one of the top web development agencies in Northern Ireland, Pale Blue Dot. If you'd like to keep up to date with my latest posts and rants, you can follow me on Twitter: @PaulDonnelly

Leave a Reply

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

fourteen − 9 =