<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) 2022 Amasty (https://www.amasty.com)
* @package Automatic Related Products for Magento 2
*/-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="sales_model_service_quote_submit_success">
        <observer name="amasty_mostviewed_save_pack_sales" instance="Amasty\Mostviewed\Model\Observer\Frontend\PlaceOrderAfter" />
    </event>
    <event name="sales_quote_collect_totals_after">
        <observer name="amasty_mostviewed_check_option" instance="Amasty\Mostviewed\Model\Observer\Frontend\TotalsCollectAfter" />
    </event>
</config>
