简体   繁体   中英

How to disable custom module in magento

I have overridden core file in my custom module extension.

Disabling this module using magento admin panel is not working.

system -> configuration -> Advanced
Module Name (drop down option - disable)

Thanks in advance.

When we disable module from admin, it only disables html output on frontend.

Module config file still loads when module is disable from admin, so your override functionality is still loaded with this module, so try to disable that module from config file.

Try <active>false</active> in your module etc .xml file.

I would prefer to disable the module via terminal

bin/magento module:disable ${MODULE_NAME}

If it says there is no such module, try listing all enabled ones to find yours

bin/magento module:status --enabled

Reference to official dosc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM