ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?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="payment" sortOrder="1000" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
|
||||
<group id="netterm" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
|
||||
<label>Net Term Payment</label>
|
||||
<field id="active" type="select" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
|
||||
<label>Enabled</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
</field>
|
||||
<field id="title" type="text" sortOrder="20" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
|
||||
<label>Title</label>
|
||||
</field>
|
||||
<field id="order_status" type="select" sortOrder="30" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
|
||||
<label>New Order Status</label>
|
||||
<source_model>Magento\Sales\Model\Config\Source\Order\Status\NewStatus</source_model>
|
||||
</field>
|
||||
<field id="allowspecific" type="allowspecific" sortOrder="40" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
|
||||
<label>Payment from Applicable Countries</label>
|
||||
<source_model>Magento\Payment\Model\Config\Source\Allspecificcountries</source_model>
|
||||
</field>
|
||||
<field id="specificcountry" type="multiselect" sortOrder="50" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
|
||||
<label>Payment from Applicable Countries</label>
|
||||
<source_model>Magento\Directory\Model\Config\Source\Country</source_model>
|
||||
<can_be_empty>1</can_be_empty>
|
||||
</field>
|
||||
<field id="sort_order" type="text" sortOrder="60" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
|
||||
<label>Sort Order</label>
|
||||
</field>
|
||||
<field id="instructions" type="textarea" sortOrder="70" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
|
||||
<label>Instructions</label>
|
||||
</field>
|
||||
</group>
|
||||
</section>
|
||||
</system>
|
||||
</config>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?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>
|
||||
<payment>
|
||||
<netterm>
|
||||
<active>1</active>
|
||||
<model>Lts\Netterm\Model\Payment\Netterm</model>
|
||||
<order_status>pending</order_status>
|
||||
<title>Net Term</title>
|
||||
<allowspecific>0</allowspecific>
|
||||
<group>offline</group>
|
||||
</netterm>
|
||||
</payment>
|
||||
</default>
|
||||
</config>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" ?>
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="quote">
|
||||
<column name="netsuite_payment_id" nullable="true" xsi:type="int" comment="Netsuite Payment Id" unsigned="true"/>
|
||||
</table>
|
||||
</schema>
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
<?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="payment_method_is_active">
|
||||
<observer name="netterm_payment_method_is_active" instance="Lts\Netterm\Observer\IsNettermActive"/>
|
||||
</event>
|
||||
</config>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<type name="Magento\Checkout\Model\CompositeConfigProvider">
|
||||
<arguments>
|
||||
<argument name="configProviders" xsi:type="array">
|
||||
<item name="netterm_instructions_config_provider" xsi:type="object">Lts\Netterm\Model\InstructionsConfigProvider</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
</config>
|
||||
@@ -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="Lts_Netterm"/>
|
||||
</config>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" ?>
|
||||
<payment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Payment:etc/payment.xsd">
|
||||
<groups>
|
||||
<group id="offline">
|
||||
<label>Offline Payment Methods</label>
|
||||
</group>
|
||||
</groups>
|
||||
<methods>
|
||||
<method name="netterm">
|
||||
<allow_multiple_address>1</allow_multiple_address>
|
||||
</method>
|
||||
</methods>
|
||||
</payment>
|
||||
Reference in New Issue
Block a user