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 7952559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:53:48+00:00 2026-06-04T02:53:48+00:00

Using the stores node in config xml – is it possible to manipulate the

  • 0

Using the stores node in config xml – is it possible to manipulate the inherit values (i.e. the checkboxes that determine the scope of website or store value)

So for example the config path for phone under general is: General > Store Information > Phone

so in xml i would target this as:

<stores>
        <my_store_code>
            <general>
                <store_information>
                    <phone>111 222 333</phone>
                </store_information>
            </general>
        </my_store_code>
    </stores>

But how do i then make sure this value is used over website. The path appears to be phone_inherit though i have been unable to target that directly via xml

  • 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-06-04T02:53:50+00:00Added an answer on June 4, 2026 at 2:53 am

    The state of the checkbox is determined by whether or not a value is set in the core_config_data table.

    You can see this in Mage_Adminhtml_Block_System_Config::initFields():
    Line 295 (Magento 1.7.0.0):

    if (isset($this->_configData[$path])) {
        $data = $this->_configData[$path];
        $inherit = false;
    } else {
        $data = $this->_configRoot->descend($path);
        $inherit = true;
    }
    

    _configData is an array of paths/values loaded from the core_config_data table. If the path is set (in the database), it uses the value and sets $inherit to false (unchecked); otherwise, it looks for the value in the scope config (_configRoot) and sets $inherit to true (checked).

    The scope config is based on what you have set in admin under “Current Configuration Scope”. So if you have a store view selected, it’ll look for the general/store_information/phone value under stores/my_store_code. Depending on your configuration, this could return a store value, website value, default value, or nothing; store values override website values, and website values override default values.

    This means that, in the configuration, there is no way to explicitly say “inherit from website”. Instead, Magento mimics this by adding/removing values from the database when you change the value of the “use website/default” checkbox. Magento adds a row in core_config_data when you uncheck the box and enter a custom value. Likewise, Magento will delete the row and look in the scope config if you elect to use the “website/default” value.

    For example, you can have “use website” checked, but Magento will use the store value if you have it specified in your config.xml file. A bit confusing, but that’s how it works. So, if you want your store to use the website value, you need to remove your store configuration xml for that value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a column that stores xml using SQL Server's Xml data type. Also,
I have a Node.js app using Express that stores data in a mongoDB (locally).
I am using a onclick function that stores a character in $itemid=1; $storeid=3; $status='rejected';
I started using Carrierwave, and I found out that it stores temporary files at
I have a node app which accepts an uploaded image (using formidable) and stores
I'm working on a simple service using Node.js. It receives uploaded files, stores them
How much data can be stored on one node using CouchBase. I want my
As a preface, I'm using Node.js with Mongo-db-native. I'm also using GridFS to store
I am building an app using Phonegap and JQuery. The app stores ( using
In the past, I created my stores using Ext.create('Ext.data.Store', ... and when I wanted

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.