0

I am currently experiencing an issue where a vendor module is using MSI, however we needed to disable it via composer completly ( magento 2.3.4 ) The vendor module in question is the amasty layered navigation module ( amasty/shopby) which in the di.xml has the following declarations:

        <arguments>
            <argument name="name" xsi:type="string">Magento\InventorySalesApi\Api\StockResolverInterface</argument>
        </arguments>
    </virtualType>

    <virtualType name="defaultStockProvider" type="Amasty\ShopbyBase\Model\Di\Wrapper">
        <arguments>
            <argument name="name" xsi:type="string">Magento\InventoryCatalogApi\Api\DefaultStockProviderInterface</argument>
        </arguments>
    </virtualType>

    <virtualType name="stockIndexTableNameResolver" type="Amasty\ShopbyBase\Model\Di\Wrapper">
        <arguments>
            <argument name="name" xsi:type="string">Magento\InventoryIndexer\Model\StockIndexTableNameResolverInterface</argument>
        </arguments>
    </virtualType>

    <type name="Amasty\Shopby\Plugin\CatalogSearch\Model\Indexer\Fulltext\Action\DataProvider">
        <arguments>
            <argument name="stockResolver" xsi:type="object">stockResolver</argument>
            <argument name="defaultStockProvider" xsi:type="object">defaultStockProvider</argument>
            <argument name="stockIndexTableNameResolver" xsi:type="object">stockIndexTableNameResolver</argument>
        </arguments>
    </type>```

Instead of commenting them out on the ```vendor/amasty/shopby/di.xml``` how is it possible to override that in a custom module and disable them ?

1 Answer 1

0

Thank you for posting your question.

Today we've released a new version for Improved Layered Navigation for M2, where the following issue has been fixed.

Would you please upgrade the extension to 2.14.7 version and check if it works correctly for you?

In case of any struggles feel free to contact our support team at [email protected], we'll be glad to assist you.

Kind regards, Amasty Team

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.