This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from mageplaza/2.3-develop
Clean code
- Loading branch information
Showing
12 changed files
with
153 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,75 @@ | ||
<?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:framework:Event/etc/events.xsd"> | ||
<event name="sales_order_save_before"> | ||
<observer name="mp_wh_save_order_before" instance="Mageplaza\Webhook\Observer\BeforeSave"/> | ||
</event> | ||
<event name="sales_order_save_after"> | ||
<observer name="mp_wh_order" instance="Mageplaza\Webhook\Observer\AfterOrder"/> | ||
</event> | ||
<event name="sales_order_status_history_save_after"> | ||
<observer name="mp_wh_before_order" instance="Mageplaza\Webhook\Observer\AfterOrderComment"/> | ||
</event> | ||
<event name="sales_order_invoice_save_after"> | ||
<observer name="mp_wh_new_invoice" instance="Mageplaza\Webhook\Observer\AfterInvoice"/> | ||
</event> | ||
<event name="sales_order_shipment_save_after"> | ||
<observer name="mp_wh_new_shipment" instance="Mageplaza\Webhook\Observer\AfterShipment"/> | ||
</event> | ||
<event name="sales_order_creditmemo_save_after"> | ||
<observer name="mp_wh_new_creditmemo" instance="Mageplaza\Webhook\Observer\AfterCreditmemo"/> | ||
</event> | ||
<event name="customer_save_before"> | ||
<observer name="mp_wh_save_customer_before" instance="Mageplaza\Webhook\Observer\BeforeSave"/> | ||
</event> | ||
<event name="customer_save_after"> | ||
<observer name="mp_wh_new_customer" instance="Mageplaza\Webhook\Observer\AfterCustomer"/> | ||
</event> | ||
<event name="customer_delete_before"> | ||
<observer name="mp_wh_delete_customer" instance="Mageplaza\Webhook\Observer\BeforeDeleteCustomer"/> | ||
</event> | ||
<event name="catalog_product_save_before"> | ||
<observer name="mp_wh_product_save_before" instance="Mageplaza\Webhook\Observer\BeforeSave"/> | ||
</event> | ||
<event name="catalog_product_save_after"> | ||
<observer name="mp_wh_new_product" instance="Mageplaza\Webhook\Observer\AfterProduct"/> | ||
</event> | ||
<event name="catalog_product_delete_before"> | ||
<observer name="mp_wh_delete_product" instance="Mageplaza\Webhook\Observer\BeforeDeleteProduct"/> | ||
</event> | ||
<event name="catalog_category_save_before"> | ||
<observer name="mp_wh_category_save_before" instance="Mageplaza\Webhook\Observer\BeforeSave"/> | ||
</event> | ||
<event name="catalog_category_save_after"> | ||
<observer name="mp_wh_category_save_after" instance="Mageplaza\Webhook\Observer\AfterCategory"/> | ||
</event> | ||
<event name="catalog_category_delete_before"> | ||
<observer name="mp_wh_delete_product" instance="Mageplaza\Webhook\Observer\BeforeDeleteCategory"/> | ||
</event> | ||
<event name="customer_login"> | ||
<observer name="mp_wh_customer_login" instance="Mageplaza\Webhook\Observer\CustomerLogin"/> | ||
</event> | ||
<event name="newsletter_subscriber_save_after"> | ||
<observer name="mp_wh_subscriber" instance="Mageplaza\Webhook\Observer\Subscriber"/> | ||
</event> | ||
</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:framework:Event/etc/events.xsd"> | ||
<event name="sales_order_save_before"> | ||
<observer name="mp_wh_save_order_before" instance="Mageplaza\Webhook\Observer\BeforeSave"/> | ||
</event> | ||
<event name="sales_order_save_after"> | ||
<observer name="mp_wh_order" instance="Mageplaza\Webhook\Observer\AfterOrder"/> | ||
</event> | ||
<event name="sales_order_status_history_save_after"> | ||
<observer name="mp_wh_before_order" instance="Mageplaza\Webhook\Observer\AfterOrderComment"/> | ||
</event> | ||
<event name="sales_order_invoice_save_after"> | ||
<observer name="mp_wh_new_invoice" instance="Mageplaza\Webhook\Observer\AfterInvoice"/> | ||
</event> | ||
<event name="sales_order_shipment_save_after"> | ||
<observer name="mp_wh_new_shipment" instance="Mageplaza\Webhook\Observer\AfterShipment"/> | ||
</event> | ||
<event name="sales_order_creditmemo_save_after"> | ||
<observer name="mp_wh_new_creditmemo" instance="Mageplaza\Webhook\Observer\AfterCreditmemo"/> | ||
</event> | ||
<event name="customer_save_before"> | ||
<observer name="mp_wh_save_customer_before" instance="Mageplaza\Webhook\Observer\BeforeSave"/> | ||
</event> | ||
<event name="customer_save_after"> | ||
<observer name="mp_wh_new_customer" instance="Mageplaza\Webhook\Observer\AfterCustomer"/> | ||
</event> | ||
<event name="customer_delete_before"> | ||
<observer name="mp_wh_delete_customer" instance="Mageplaza\Webhook\Observer\BeforeDeleteCustomer"/> | ||
</event> | ||
<event name="catalog_product_save_before"> | ||
<observer name="mp_wh_product_save_before" instance="Mageplaza\Webhook\Observer\BeforeSave"/> | ||
</event> | ||
<event name="catalog_product_save_after"> | ||
<observer name="mp_wh_new_product" instance="Mageplaza\Webhook\Observer\AfterProduct"/> | ||
</event> | ||
<event name="catalog_product_delete_before"> | ||
<observer name="mp_wh_delete_product" instance="Mageplaza\Webhook\Observer\BeforeDeleteProduct"/> | ||
</event> | ||
<event name="catalog_category_save_before"> | ||
<observer name="mp_wh_category_save_before" instance="Mageplaza\Webhook\Observer\BeforeSave"/> | ||
</event> | ||
<event name="catalog_category_save_after"> | ||
<observer name="mp_wh_category_save_after" instance="Mageplaza\Webhook\Observer\AfterCategory"/> | ||
</event> | ||
<event name="catalog_category_delete_before"> | ||
<observer name="mp_wh_delete_product" instance="Mageplaza\Webhook\Observer\BeforeDeleteCategory"/> | ||
</event> | ||
<event name="customer_login"> | ||
<observer name="mp_wh_customer_login" instance="Mageplaza\Webhook\Observer\CustomerLogin"/> | ||
</event> | ||
<event name="newsletter_subscriber_save_after"> | ||
<observer name="mp_wh_subscriber" instance="Mageplaza\Webhook\Observer\Subscriber"/> | ||
</event> | ||
</config> |
Oops, something went wrong.