Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #102 from mageplaza/2.4-develop
Browse files Browse the repository at this point in the history
2.4 develop
  • Loading branch information
haitv282 authored Jun 22, 2022
2 parents 975a6f1 + b8c76aa commit 08be71c
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 83 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "mageplaza/module-webhook",
"description": "Magento 2 Webhook Extension",
"require": {
"mageplaza/module-core": "^1.4.5",
"mageplaza/module-core": "^1.4.12",
"liquid/liquid": "^1.4.8"
},
"type": "magento2-module",
"version": "4.1.2",
"version": "4.1.3",
"license": "proprietary",
"authors": [
{
Expand Down
162 changes: 81 additions & 81 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
@@ -1,81 +1,81 @@
<?xml version="1.0"?>
<!--
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license that is
* available through the world-wide-web at this URL:
* https://www.mageplaza.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Mageplaza
* @package Mageplaza_Webhook
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
* @license https://www.mageplaza.com/LICENSE.txt
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="mp_webhook" translate="label" type="text" sortOrder="300" showInDefault="1">
<class>separator-top</class>
<label>Webhook</label>
<tab>mageplaza</tab>
<resource>Mageplaza_Webhook::configuration</resource>
<group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<field id="enabled" translate="label comment" type="select" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Enable</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment><![CDATA[Select <b>Yes</b> to enable this module.<br />
<a href="https://www.mageplaza.com/kb/webhook/" target="_blank">How to integrate with others</a> <br />
1. It helps to reduce abandonment cart with <a href="https://www.mageplaza.com/magento-2-one-step-checkout-extension/" target="_blank">One Step Checkout</a>. <br />
2. Magento stores see upwards of 30% revenue 💰 with AVADA. <a href="https://go.avada.io/mageplaza">Learn more</a>]]></comment>
</field>
<field id="abandoned_time" translate="label comment" type="text" sortOrder="2" showInDefault="1" canRestore="1">
<label>Abandoned Cart After</label>
<validate>validate-digits</validate>
<comment>How to deteminte as Abandonded Cart. Enter number of hour(s). Recommend: 1, 6, 10, 12, 24. Default: 10</comment>
</field>
<field id="keep_log" translate="label comment" type="text" sortOrder="10" showInDefault="1" canRestore="1">
<label>Keep logs</label>
<validate>validate-digits</validate>
<comment>The number of logs will be kept in each hook. If it reaches this number, the old logs will be removed. If empty or zero, no limitation. Default: 10</comment>
</field>
<field id="alert_enabled" translate="label comment" type="select" sortOrder="20" showInDefault="1" canRestore="1">
<label>Alert on Error</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment><![CDATA[Send alert email to your email addresses if any error. To avoid going to spambox, you should install <a href="https://www.mageplaza.com/magento-2-smtp/" target="_blank">SMTP</a>]]></comment>
</field>
<field id="send_to" translate="label comment" type="text" sortOrder="10" showInDefault="1">
<label>Send To</label>
<backend_model>Mageplaza\Webhook\Model\Config\Backend\Email</backend_model>
<comment>Separated by comma (,)</comment>
</field>
<field id="email_template" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Email Template</label>
<source_model>Magento\Config\Model\Config\Source\Email\Template</source_model>
</field>
</group>
<group id="cron" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Schedule For Cron</label>
<field id="schedule" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1" >
<label>Schedule For Cron</label>
<source_model>Mageplaza\Webhook\Model\Config\Source\Schedule</source_model>
<comment><![CDATA[Applied for Processing Type as Cron]]></comment>
</field>
<field id="start_time" translate="label" type="time" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Start Time</label>
<depends>
<field id="schedule" separator=",">day,week,month</field>
</depends>
</field>
</group>
</section>
</system>
</config>
<?xml version="1.0"?>
<!--
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license that is
* available through the world-wide-web at this URL:
* https://www.mageplaza.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Mageplaza
* @package Mageplaza_Webhook
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
* @license https://www.mageplaza.com/LICENSE.txt
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="mp_webhook" translate="label" type="text" sortOrder="300" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Webhook</label>
<tab>mageplaza</tab>
<resource>Mageplaza_Webhook::configuration</resource>
<group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<field id="enabled" translate="label comment" type="select" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Enable</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment><![CDATA[Select <b>Yes</b> to enable this module.<br />
<a href="https://www.mageplaza.com/kb/webhook/" target="_blank">How to integrate with others</a> <br />
1. It helps to reduce abandonment cart with <a href="https://www.mageplaza.com/magento-2-one-step-checkout-extension/" target="_blank">One Step Checkout</a>. <br />
2. Magento stores see upwards of 30% revenue 💰 with AVADA. <a href="https://go.avada.io/mageplaza">Learn more</a>]]></comment>
</field>
<field id="abandoned_time" translate="label comment" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Abandoned Cart After</label>
<validate>validate-digits</validate>
<comment>How to deteminte as Abandonded Cart. Enter number of hour(s). Recommend: 1, 6, 10, 12, 24. Default: 10</comment>
</field>
<field id="keep_log" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Keep logs</label>
<validate>validate-digits</validate>
<comment>The number of logs will be kept in each hook. If it reaches this number, the old logs will be removed. If empty or zero, no limitation. Default: 10</comment>
</field>
<field id="alert_enabled" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Alert on Error</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment><![CDATA[Send alert email to your email addresses if any error. To avoid going to spambox, you should install <a href="https://www.mageplaza.com/magento-2-smtp/" target="_blank">SMTP</a>]]></comment>
</field>
<field id="send_to" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Send To</label>
<backend_model>Mageplaza\Webhook\Model\Config\Backend\Email</backend_model>
<comment>Separated by comma (,)</comment>
</field>
<field id="email_template" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Email Template</label>
<source_model>Magento\Config\Model\Config\Source\Email\Template</source_model>
</field>
</group>
<group id="cron" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Schedule For Cron</label>
<field id="schedule" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1" >
<label>Schedule For Cron</label>
<source_model>Mageplaza\Webhook\Model\Config\Source\Schedule</source_model>
<comment><![CDATA[Applied for Processing Type as Cron]]></comment>
</field>
<field id="start_time" translate="label" type="time" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Start Time</label>
<depends>
<field id="schedule" separator=",">day,week,month</field>
</depends>
</field>
</group>
</section>
</system>
</config>

0 comments on commit 08be71c

Please sign in to comment.