Magento PLugin 多商店禁用/启用功能
我开发了一个扩展。现在,我的客户在同一 magento 平台上拥有另一家商店(多商店功能)后想要在一个商店上禁用“extesnion”并在其他商店上启用。
我陷入困境,不能整天阅读 magento 文档,因为我还有其他 3 个客户/项目正在进行,仍然想帮助这个 magento 人。
如果有人能给我“如何使 magento 插件可用于在多商店 magento 副本中打开/关闭每个商店?”的答案,我会很高兴。
如果有人能给我指示去哪里挖掘,我也将不胜感激!
多谢!
I had developed an extension. Now my client after having another store within same magento platform (multistore functionality) wants to disable "extesnion" on one store and enable on other.
I am stuck, can't have whole day reading magento docs, as I have other 3 clients/project ongoing, still want to help out this magento guy.
I would be happy if someone could give me answer to "How to make magento plugin to be available to turn on/off per store in multistore magento copy?"
I would also appreciate if anyone could just give me directions where to dig!
thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找不到回答简单问题的上一个问题,希望有人可以将其挖掘出来。基本上,创建一个商店级配置选项来启用/禁用功能。然后,当调用您的新功能时(我确信它已正确保存在您的模块的类中):
没有干净的方法可以通过 Magento 的默认接口禁用该模块,但这实际上是一个非常干净的代理。
谢谢,
乔
I can't find the previous question that answered a simple thing, hopefully someone can dredge it up. Basically, create a store-level configuration option to enable/disable functionality. Then, when invoking your new functionality (which I'm sure has been properly kept within your module's classes):
There is no clean way to disable the module otherwise through Magento's default interfaces, but this is actually a very clean proxy.
Thanks,
Joe