init
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
|
||||
<menu>
|
||||
<add id="Esun_SeventeenTrack::root" title="17TRACK" module="Esun_SeventeenTrack"
|
||||
sortOrder="90" parent="Esun_ImageManager::esun" resource="Esun_SeventeenTrack::logs"/>
|
||||
<add id="Esun_SeventeenTrack::logs" title="API Logs" module="Esun_SeventeenTrack"
|
||||
sortOrder="10" parent="Esun_SeventeenTrack::root" action="esun_seventeen_track/log/index"
|
||||
resource="Esun_SeventeenTrack::logs"/>
|
||||
</menu>
|
||||
</config>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="admin">
|
||||
<route id="esun_seventeen_track" frontName="esun_seventeen_track">
|
||||
<module name="Esun_SeventeenTrack" before="Magento_Backend"/>
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?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>
|
||||
<section id="esun_seventeen_track" translate="label" sortOrder="170" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<label>17TRACK</label><tab>esun</tab><resource>Esun_SeventeenTrack::config</resource>
|
||||
<group id="general" translate="label" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<label>API Connection</label>
|
||||
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0"><label>Enabled</label><source_model>Magento\Config\Model\Config\Source\Yesno</source_model></field>
|
||||
<field id="api_url" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0"><label>API Base URL</label></field>
|
||||
<field id="api_key" translate="label comment" type="obscure" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0"><label>API Key</label><backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model><comment>Stored encrypted. It is only sent to api.17track.net in the 17token request header.</comment></field>
|
||||
</group>
|
||||
<group id="sync" translate="label" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<label>Delivery Synchronization</label>
|
||||
<field id="batch_size" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0"><label>Batch Size</label><comment>Maximum 40, matching the 17TRACK API limit.</comment></field>
|
||||
<field id="auto_receive" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0"><label>Mark Orders Received Automatically</label><source_model>Magento\Config\Model\Config\Source\Yesno</source_model><comment>When every tracking number on a shipped order is Delivered, change its status to Received.</comment></field>
|
||||
</group>
|
||||
<group id="widget" translate="label" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<label>Customer Order Widget</label>
|
||||
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0"><label>Enabled</label><source_model>Magento\Config\Model\Config\Source\Yesno</source_model></field>
|
||||
<field id="height" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0"><label>Widget Height</label><comment>From 200 to 800 pixels.</comment></field>
|
||||
</group>
|
||||
</section>
|
||||
</system>
|
||||
</config>
|
||||
Reference in New Issue
Block a user