<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

    <!--START MOSTRAR PRECIO EN PRODUCTOS SIN STOCK-->
    <!--preference for="Magento\ConfigurableProduct\Pricing\Render\FinalPriceBox" type="Yeboyebo\Theme\Pricing\Render\FinalPriceBox" /-->

    <type name="Magento\ConfigurableProduct\Model\ResourceModel\Product\LinkedProductSelectBuilder">
        <arguments>
            <argument name="baseSelectProcessor" xsi:type="object">Yeboyebo\Theme\Model\ConfigurableProduct\ResourceModel\Product\StockStatusBaseSelectProcessor</argument>
        </arguments>
    </type>
    <!--END MOSTRAR PRECIO EN PRODUCTOS SIN STOCK-->

    <!--Mostrar el MXN a la derecha en precio pesos mexicanos -->
    <preference for="Magento\Directory\Model\Currency" type="Yeboyebo\Theme\Model\Currency" />
    <preference for="Magento\Catalog\Block\Product\View" type="Yeboyebo\Theme\Block\Product\View"/>
    <preference for="Magento\Catalog\Block\Product\View\Description" type="Yeboyebo\Theme\Block\Product\View\Description"/>
    <preference for="Magento\Catalog\Block\Product\ListProduct" type="Yeboyebo\Theme\Block\Product\ListProduct"/>
    <preference for="Amasty\Xsearch\Block\Search\Product" type="Yeboyebo\Theme\Block\Search\Product"/>
    <preference for="Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option\Radio" type="Yeboyebo\Theme\Block\Product\Bundle\Radio"/>

    <type name="Magento\ConfigurableProduct\Block\Product\View\Type\Configurable">
        <plugin disabled="false" name="Yeboyebo_Theme_Plugin_Magento_ConfigurableProduct_Block_Product_View_Type_Configurable" sortOrder="10" type="Yeboyebo\Theme\Plugin\Magento\ConfigurableProduct\Block\Product\View\Type\Configurable"/>
    </type>
    <type name="Magento\Swatches\Block\Product\Renderer\Configurable">
        <plugin disabled="false" name="Yeboyebo_Theme_Plugin_Magento_Swatches_Block_Product_Renderer_Configurable" sortOrder="10" type="Yeboyebo\Theme\Plugin\Magento\Swatches\Block\Product\Renderer\Configurable"/>
    </type>
    <type name="Magento\Catalog\Block\Product\ProductList\Toolbar">
        <plugin name="update_toolbar_count" disabled="true"/>
    </type>
	<preference for="Magento\Elasticsearch\Model\ResourceModel\Fulltext\Collection\SearchResultApplier" type="Yeboyebo\Theme\Model\ResourceModel\Fulltext\Collection\SearchResultApplier"/>
</config>
