<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <!-- add to json config for PDP pages -->
    <type name="Magento\Catalog\Block\Product\View">
        <plugin name="DJOGlobal_ProductInserts::AddProductInsertsToJsonConfig" type="DJOGlobal\ProductInserts\Plugin\AddProductInsertsToJsonConfig" sortOrder="99"/>
    </type>
    <type name="Magento\ConfigurableProduct\Block\Product\View\Type\Configurable">
        <plugin name="DJOGlobal_ProductInserts::AddProductInsertsToConfigurableJsonConfig" type="DJOGlobal\ProductInserts\Plugin\AddProductInsertsToConfigurableJsonConfig" sortOrder="99"/>
    </type>

    <!-- sort in mini-cart -->
    <type name="Magento\Checkout\CustomerData\Cart">
        <plugin name="DJOGlobal_ProductInserts::SortProductInsertsInMiniCart" type="DJOGlobal\ProductInserts\Plugin\SortProductInsertsInMiniCart" sortOrder="99"/>
    </type>

    <!-- make sure detects "options" on PDP -->
    <!--
    <type name="Magento\Catalog\Block\Product\View">
        <plugin name="DJOGlobal_ProductInserts::ReturnTrueForHasOptionsCheck" type="DJOGlobal\ProductInserts\Plugin\ReturnTrueForHasOptionsCheck"/>
    </type>
    -->
</config>