Your IP : 127.0.0.1


Current Path : /home/dev2.destoffenstraat.com/app/code/TIG/PostNL/etc/
Upload File :
Current File : /home/dev2.destoffenstraat.com/app/code/TIG/PostNL/etc/events.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--
 *
 *
 *          ..::..
 *     ..::::::::::::..
 *   ::'''''':''::'''''::
 *   ::..  ..:  :  ....::
 *   ::::  :::  :  :   ::
 *   ::::  :::  :  ''' ::
 *   ::::..:::..::.....::
 *     ''::::::::::::''
 *          ''::''
 *
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Creative Commons License.
 * It is available through the world-wide-web at this URL:
 * http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
 * If you are unable to obtain it through the world-wide-web, please send an email
 * to servicedesk@tig.nl so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this module to newer
 * versions in the future. If you wish to customize this module for your
 * needs please contact servicedesk@tig.nl for more information.
 *
 * @copyright   Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
 * @license     http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
 *
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="sales_order_save_after">
        <!-- Creates the tig_postnl_order record -->
        <observer name="tig_postnl_sales_order_place_after" instance="TIG\PostNL\Observer\SalesOrderSaveAfter\CreatePostNLOrder" />
        <!-- Sets Pakjegemak address (can not use place after event, because the order ID is not available)-->
        <observer name="tig_postnl_sales_address_to_order" instance="TIG\PostNL\Observer\SalesOrderSaveAfter\AddressToOrder" />
        <!-- Updates the sales_order_grid table-->
        <observer name="tig_postnl_update_order_grid" instance="TIG\PostNL\Observer\SalesOrderSaveAfter\UpdateOrderGrid" />
    </event>

    <event name="tig_postnl_shipment_save_after">
        <!--Updates the sales_order_grid table-->
        <observer name="tig_postnl_update_sales_order_grid" instance="TIG\PostNL\Observer\TIGPostNLShipmentSaveAfter\UpdateOrderGrid" />
        <!--Updates the sales_shipment_grid table-->
        <observer name="tig_postnl_update_sales_shipment_grid" instance="TIG\PostNL\Observer\TIGPostNLShipmentSaveAfter\UpdateOrderShipmentGrid" />
    </event>

    <event name="tig_postnl_order_save_before">
        <!-- Set some default data on the tig_postnl_order table -->
        <observer name="tig_postnl_order_set_default_data" instance="\TIG\PostNL\Observer\TIGPostNLOrderSaveBefore\SetDefaultData" />
    </event>
</config>