Question

I have successfully built a custom module to integrate an additional section on configuration page "Hide price option" with help of this tutorial create custom module

Now I want to have this form under Currency setup configuration page if possible otherwise after currency setup page under general config page.

I tried with changing namespace but its not working.

Was it helpful?

Solution

You can change system.xml with this

<?xml version="1.0"?>
<config>
    <sections>
        <currency>
            <groups>
                <section_one translate="label">
                    <label>Section One</label>
                    <frontend_type>text</frontend_type>
                    <sort_order>1</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>                
                    <fields>
                        <custom_field_one>
                            <label>Custom Text Field</label>
                            <frontend_type>text</frontend_type>
                            <sort_order>1</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                            <comment>Example of text field.</comment>                   
                        </custom_field_one>
                    </fields>
                </section_one>

                <!-- ADD OTHER BLOCKS HERE -->

            </groups>                
        </currency>
    </sections>
</config>

Like this:

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top