Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1087347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:55:34+00:00 2026-05-16T22:55:34+00:00

The Magento backend allows you to disable module output per site. I’ve done some

  • 0

The Magento backend allows you to disable module output per site. I’ve done some Google searches but can’t figure out how to grab this value through my code. Basically when my module’s output is disabled that works just fine. But I’ve discovered (the hard way) that Magento doesn’t prevent the module from loading per-site.

Because I’m extending some core classes, some constructors are still being executed. My thought is to check if the module output is disabled. If so, have my constructor call the parent’s constructor. If the module output is enabled, proceed with my custom code.

I just can’t figure out how to grab this value for the current site (I am multi-sited, BTW). Ideally it would be something like this:

$isThisEnabled = Mage::app()->getCurrentStore()->isOutputEnabled('myModule');

Basically have a single line that fetches the current site’s value (or the default, if not specified for the current site).

Any help would be greatly appreciated!

EDIT: I found the table core_config_data, which appears to store this information. I could manually query it if I had to, but I feel like Magento would have something built-in to return the current store’s value, falling back to the default value.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:55:34+00:00Added an answer on May 16, 2026 at 10:55 pm

    It is a standard config setting, so accessing it should be no different than accessing any other config setting. You just need to know what is the path to this value. Analysing the DB I believe this should do the trick:

    Mage::getStoreConfig('advanced/modules_disable_output/Namespace_Module');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a custom payment gateway for Magento. The module is recognised
Magento allows you to set custom options for products -- for example, Deluxe version
Using Magento i want to create website where user can upload their products to
I'm using Magento 1.5 with 3 different stores (same products, though targetted at different
I have put magento inside a drupal installation in a subdirectory called store. When
I'm using magento 1.5. I have a requirement to install a third-party ecommerce package.
I set a magento website with several stores, I'm making a list of all
I am new to Magento CMS, i have configured products using admin panel, at
i am writing a magento product exporter, that writes a couple of attributes into
I have successfully installed Magento 1.5.1.0 in my localhost.Then i go to admin panel

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.