简体   繁体   English

如何在 magento 中禁用自定义模块

[英]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.使用 magento 管理面板禁用此模块不起作用。

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.当我们从管理员禁用模块时,它只会禁用前端的 html 输出。

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.在您的模块等.xml文件中尝试<active>false</active>

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参考官方文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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