To get Magento backend store config, just use this function:

Mage::getStoreConfig('gmdotnet_extsample/example/variable');

Let's explain the path:

gmdotnet ==> vendor name (under app > code)

extsample ==> package name

example ==> group name

variable ==> input field name

Under system.xml of the extension you have:

<config>
    <sections>
        <gmdotnet_extsample>
            ...
            <groups>
            ...
                <example>
                <fields>
                    <variable>
                    ....
                    </variable>
                </fields>
                </example>
            </groups>       
        </gmdotnet_extsample>
    </sections>
</config>
Commenti offerti da Disqus