Skip to content

Instantly share code, notes, and snippets.

@amacgregor
Forked from anonymous/config
Last active December 16, 2015 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amacgregor/5442931 to your computer and use it in GitHub Desktop.
Save amacgregor/5442931 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<!--
/**
* @category Signifyd
* @package Signifyd_Connect
* @author Alex Manelis
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->
<config>
<modules>
<Signifyd_Connect>
<version>0.0.1</version>
</Signifyd_Connect>
</modules>
<global>
<helpers>
<connect>
<class>Signifyd_Connect_Helper</class>
</connect>
</helpers>
<models>
<connect>
<class>Signifyd_Connect_Model</class>
<resourceModel>connect</resourceModel>
</connect>
</models>
<blocks>
<connect>
<class>Signifyd_Connect_Block</class>
</connect>
</blocks>
<events>
<checkout_multishipping_controller_success_action>
<observers>
<Signifyd_Connect_Model_Observer>
<type>singleton</type>
<class>Signifyd_Connect_Model_Observer</class>
<method>checkout_multishipping_controller_success_action</method>
</Signifyd_Connect_Model_Observer>
</observers>
</checkout_multishipping_controller_success_action>
<checkout_onepage_controller_success_action>
<observers>
<Signifyd_Connect_Model_Observer>
<type>singleton</type>
<class>Signifyd_Connect_Model_Observer</class>
<method>checkout_onepage_controller_success_action</method>
</Signifyd_Connect_Model_Observer>
</observers>
</checkout_onepage_controller_success_action>
</events>
</global>
<default>
<connect>
<view>
<enabled>1</enabled>
<items_per_page>20</items_per_page>
<days_difference>3</days_difference>
</view>
</connect>
</default>
<frontend>
<routers>
<connect>
<use>standard</use>
<args>
<module>Signifyd_Connect</module>
<frontName>connect</frontName>
</args>
</connect>
</routers>
</frontend>
</config>
<?xml version="1.0" encoding="UTF-8"?>
<config>
<tabs>
<connect module="connect" translate="label">
<label>Signifyd Connect</label>
<sort_order>100</sort_order>
</connect>
</tabs>
<sections>
<connect module="connect" translate="label">
<label>Settings</label>
<tab>connect</tab>
<sort_order>1000</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<connect_group module="connect" translate="label">
<label>My Extension Options</label>
<frontend_type>text</frontend_type>
<sort_order>1000</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<connect_input translate="label">
<label>My Input Field: </label>
<comment>My Comment</comment>
<frontend_type>text</frontend_type>
<sort_order>20</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</connect_input>
<connect_select translate="label">
<label>My Dropdown: </label>
<comment>Source model provider Magento's default Yes/No values</comment>
<frontend_type>select</frontend_type>
<sort_order>90</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<source_model>adminhtml/system_config_source_yesno</source_model>
</connect_select>
</fields>
</connect_group>
</groups>
</connect>
</sections>
</config>
@husseycoding
Copy link

adminhtml.xml

<?xml version="1.0"?>
<config>
    <acl>
        <resources>
            <all>
                <title>Allow Everything</title>
            </all>
            <admin>
                <children>
                    <system>
                        <children>
                            <config>
                                <children>
                                    <connect module="connect">
                                        <title>Signifyd Connect</title>
                                    </connect>
                                </children>
                            </config>
                        </children>
                    </system>
                </children>
            </admin>
        </resources>
    </acl>
</config>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment