2017-05-31 15:24:46 +03:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
|
2018-03-12 16:34:48 +03:00
|
|
|
<!-- Order create -->
|
2017-05-31 15:24:46 +03:00
|
|
|
|
2018-03-12 16:34:48 +03:00
|
|
|
<event name="sales_order_save_after">
|
|
|
|
<observer name="sales_order_save_after" instance="Retailcrm\Retailcrm\Model\Observer\OrderCreate" />
|
|
|
|
</event>
|
|
|
|
|
|
|
|
<!-- Order update -->
|
|
|
|
|
|
|
|
<event name="sales_order_save_commit_after">
|
|
|
|
<observer name="sales_order_save_commit_after" instance="Retailcrm\Retailcrm\Model\Observer\OrderUpdate" />
|
|
|
|
</event>
|
|
|
|
|
|
|
|
<!-- after customer save -->
|
|
|
|
|
|
|
|
<event name="customer_save_after">
|
|
|
|
<observer name="customer_save_after" instance="Retailcrm\Retailcrm\Model\Observer\Customer" />
|
|
|
|
</event>
|
2017-05-31 15:24:46 +03:00
|
|
|
</config>
|
|
|
|
|
|
|
|
|