init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?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="sales">
|
||||
<group id="orders">
|
||||
<field id="cancel_pending_after" translate="label comment" type="text" sortOrder="7"
|
||||
showInDefault="1" showInWebsite="0" showInStore="0">
|
||||
<label>Pending Order Cancellation Lifetime (minutes)</label>
|
||||
<comment>Automatically cancels unpaid orders with status Pending after this many minutes. Set to 0 to disable.</comment>
|
||||
<validate>validate-digits validate-zero-or-greater</validate>
|
||||
</field>
|
||||
</group>
|
||||
</section>
|
||||
</system>
|
||||
</config>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
|
||||
<default>
|
||||
<sales>
|
||||
<orders>
|
||||
<cancel_pending_after>0</cancel_pending_after>
|
||||
</orders>
|
||||
</sales>
|
||||
</default>
|
||||
</config>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
|
||||
<group id="default">
|
||||
<job name="esun_cancel_expired_pending_orders"
|
||||
instance="Esun\OrderCleanup\Cron\CancelExpiredPendingOrders"
|
||||
method="execute">
|
||||
<schedule>* * * * *</schedule>
|
||||
</job>
|
||||
</group>
|
||||
</config>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?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="Esun_OrderCleanup">
|
||||
<sequence>
|
||||
<module name="Magento_Backend"/>
|
||||
<module name="Magento_Config"/>
|
||||
<module name="Magento_Cron"/>
|
||||
<module name="Magento_Sales"/>
|
||||
</sequence>
|
||||
</module>
|
||||
</config>
|
||||
Reference in New Issue
Block a user