0

How can I override a custom plugin di.xml with javascript in Magento 2? If I click "x" button use di.xml else click "y" button use di2.xml?

di.xml content

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Checkout\Block\Checkout\LayoutProcessor">
        <plugin name="checkout_shipping" type="Vendor\Company\Plugin\Checkout\Model\HideAdressFrom" sortOrder="100"/>
    </type>
</config>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.