Initial commit
This commit is contained in:
11
etc/adminhtml/routes.xml
Normal file
11
etc/adminhtml/routes.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<!--Use router 'admin' for admin route -->
|
||||
<router id="admin">
|
||||
<!--Define a custom route with id and frontName -->
|
||||
<route id="SoundPress_WHIOrders" frontName="whiorders">
|
||||
<!--The module which this route match to-->
|
||||
<module name="SoundPress_WHIOrders"/>
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
26
etc/adminhtml/system.xml
Normal file
26
etc/adminhtml/system.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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="soundpress" translate="label" sortOrder="1000">
|
||||
<label>Sound Press</label>
|
||||
</tab>
|
||||
<section id="whiorders" translate="label" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<class>separator-top</class>
|
||||
<label>WHI Orders</label>
|
||||
<tab>soundpress</tab>
|
||||
<resource>Magento_Backend::admin</resource>
|
||||
<group id="api" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<label>API Configuration</label>
|
||||
<field id="base_url" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<label>Base Url</label>
|
||||
</field>
|
||||
<field id="api_token" translate="label" type="password" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<label>API Token</label>
|
||||
</field>
|
||||
<field id="auth_test" translate="label" type="button" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<frontend_model>SoundPress\WHIOrders\Block\System\Config\TestConnection</frontend_model>
|
||||
</field>
|
||||
</group>
|
||||
</section>
|
||||
</system>
|
||||
</config>
|
||||
6
etc/events.xml
Normal file
6
etc/events.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
|
||||
<event name="checkout_submit_all_after">
|
||||
<observer name="SendWHIOrder" instance="SoundPress\WHIOrders\Observer\Checkout\SendWHIOrder" />
|
||||
</event>
|
||||
</config>
|
||||
4
etc/module.xml
Normal file
4
etc/module.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" ?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="SoundPress_WHIOrders" setup_version="1.0.0"/>
|
||||
</config>
|
||||
Reference in New Issue
Block a user