skip to Main Content

How to override di.xml of core module in custom module Magento 2

I want to remove some portion from di.xml of vendor module. Below example of some portion that to be removed. <type name="MagentoBraintreeBlockGooglePayShortcutButton"> <arguments> <argument name="data" xsi:type="array"> <item name="template" xsi:type="string">Magento_Braintree::googlepay/shortcut.phtml</item> <item name="alias" xsi:type="string">braintree.googlepay.mini-cart</item> <item name="button_id" xsi:type="string">braintree-googlepay-mini-cart</item> </argument> <argument name="payment" xsi:type="object">BraintreeGooglePay</argument> </arguments>…

VIEW QUESTION

Class 'MagentoSetupApplication' not found, after executing "git reset –hard"

I executed git reset --hard, but now I get: PHP Fatal error: Uncaught Error: Class 'MagentoSetupApplication' not found in /home/xy/vendor/magento/framework/Console/Cli.php:79 Stack trace: #0 /home/xy/bin/magento(22): MagentoFrameworkConsoleCli->__construct('Magento CLI') #1 {main} thrown in /home/xy/vendor/magento/framework/Console/Cli.php on line 79 I executed composer update in hope…

VIEW QUESTION

Problem after installing Magento 2 Module

Problem after installing Magento 2 Module {"0":"Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.nThe following modules are outdated:nMageplaza_Osc data: current version - none, required version - 2.1.8","1":"<pre> #1 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Request\Http#0000000027a6560e000000003be33d23#) called at [vendor/magento/framework/Interception/Interceptor.php:153]n #2 Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', array(&Magento\Framework\App\Request\Http#0000000027a6560e000000003be33d23#), array(array('default_store_se...',…

VIEW QUESTION
Back To Top
Search