<?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_BetterTierPrice
 * @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\Model\Product\Attribute\Backend\Tierprice" type="Mageplaza\BetterTierPrice\Model\Product\Attribute\Backend\Tierprice"/>
    <preference for="Magento\Catalog\Model\Product\Attribute\Backend\TierPrice\UpdateHandler" type="Mageplaza\BetterTierPrice\Model\Product\Attribute\Backend\TierPrice\UpdateHandler"/>
    <type name="Magento\Catalog\Model\ResourceModel\Product\Attribute\Backend\Tierprice">
        <plugin name="mp_add_column" type="Mageplaza\BetterTierPrice\Plugin\Catalog\Model\ResourceModel\Product\Attribute\Backend\Tierprice"/>
    </type>
    <type name="Magento\Catalog\Controller\Adminhtml\Product\Action\Attribute\Save">
        <plugin name="mp_mass_update_tier_price" type="Mageplaza\BetterTierPrice\Plugin\Catalog\Controller\Adminhtml\Product\Action\Attribute\Save"/>
    </type>
    <type name="Magento\Checkout\CustomerData\Cart">
        <plugin name="mp_collect_total_after_login" type="Mageplaza\BetterTierPrice\Plugin\Checkout\CustomerData\Cart"/>
    </type>
</config>