<?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_CurrencyFormatter
 * @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">
    <type name="Magento\Framework\Locale\Format">
        <plugin name="mp-currency-formatter-locale-format" type="Mageplaza\CurrencyFormatter\Plugin\Locale\Format"/>
    </type>
    <type name='Magento\Directory\Model\Currency'>
        <plugin name='mp-currency-formatter-directory-currency' type='Mageplaza\CurrencyFormatter\Plugin\Directory\Currency'/>
    </type>
    <type name='Magento\Sales\Model\Order'>
        <plugin name='mp-currency-formatter-sale-order' type='Mageplaza\CurrencyFormatter\Plugin\Sale\Order'/>
    </type>
    <type name='Magento\Catalog\Ui\Component\Listing\Columns\Price'>
        <plugin name='mp-currency-formatter-product-price' type='Mageplaza\CurrencyFormatter\Plugin\Component\Price'/>
    </type>
    <type name='Magento\Sales\Ui\Component\Listing\Column\PurchasedPrice'>
        <plugin name='mp-currency-formatter-sale-order-grid' type='Mageplaza\CurrencyFormatter\Plugin\Sale\Component\PurchasedPrice'/>
    </type>
    <type name='Magento\Backend\Block\Widget\Grid\Column\Renderer\Currency'>
        <plugin name='mp-currency-formatter-sale-order-search-grid' type='Mageplaza\CurrencyFormatter\Plugin\Widget\Currency'/>
    </type>
    <type name='Magento\Backend\Block\Widget\Grid\Column\Renderer\Price'>
        <plugin name='mp-currency-formatter-sale-order-search-grid' type='Mageplaza\CurrencyFormatter\Plugin\Widget\Price'/>
    </type>
</config>
