<?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_QuickCart
 * @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:ObjectManager/etc/config.xsd">
    <preference for="Magento\Catalog\Controller\Product\View" type="Mageplaza\QuickCart\Controller\Catalog\Product\View"/>

    <type name="Magento\Checkout\Controller\Cart\Add">
        <plugin name="mpquickview_add_to_cart_after" type="Mageplaza\QuickCart\Plugin\Controller\Cart\Add" sortOrder="10"/>
    </type>
    <type name="Magento\Checkout\Controller\Sidebar\UpdateItemQty">
        <plugin name="mpquickview_update_qty" type="Mageplaza\QuickCart\Plugin\Controller\Sidebar\UpdateItemQty" sortOrder="20"/>
    </type>
    <type name="Magento\Catalog\Controller\Product\Compare\Add">
        <plugin name="mpquickview_ajaxcart_compare" type="Mageplaza\QuickCart\Plugin\Product\Compare\Add" sortOrder="50"/>
    </type>
    <type name="Magento\Wishlist\Controller\Index\Add">
        <plugin name="mpquickview_ajaxcart_wishlist" type="Mageplaza\QuickCart\Plugin\Product\Wishlist\Add" sortOrder="100"/>
    </type>
    <type name="Magento\Checkout\Controller\Cart\Configure">
        <plugin name="mpquickview_edit-product" type="Mageplaza\QuickCart\Plugin\Controller\Cart\Configure" sortOrder="100"/>
    </type>
</config>