configuration - Magento: Disable module for any particular store -


suppose, have 3 stores.

i want disable module in store 2. want enabled in store 1 , store 3.

i see can by:-

  • going system -> configuration -> advanced

  • selecting desired store current configuration scope dropdown list.

but not work fully.

and, don't want check store in module code or create system configuration field module check/uncheck store enable/disable.

what expecting adding code in app/etc/modules/mynamespace_mymodule.xml. can way?

this configuration disables module output in layout frontend, module controllers, event observers, admin pages, etc still working.

also don't forget specify module name in layout files definition, otherwise layout file content loaded particular store:

<config>    <layout>        <module_alias module="module_name">            <file>yourlayoutfile.xml</file>        </module_alias>    </layout> </config> 

if developing module , want disable full functionality on frontent particular store, should create configuration field of "yes/no" type , check value via mage::getstoreconfigflag('config/field/path') in module code.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -