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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:25:12+00:00 2026-06-12T16:25:12+00:00

I am looking for a good solution to override the Magento config without changing

  • 0

I am looking for a good solution to override the Magento config without changing the default values.

For example, I want to override the “web/unsecure/base_skin_url” item in the core_config_data table without deleting the existing value. So if anywhere in the code this exact code is called:

Mage::getStoreConfig('web/unsecure/base_skin_url');

It will find the config option I set and not the default one…

Thanks in advance!

Chuck

  • 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-12T16:25:13+00:00Added an answer on June 12, 2026 at 4:25 pm

    Magento reads its configuration values at runtime directly from the configuration object’s tree structure, so you need to use the configuration object’s native setNode method to change the values. However, because of the way Magento loads in scoped configuration (self link), it’s not as straight forward as it seems.

    With current versions of Magento (and I believe, but have not tested, with older versions), you’ll need to set the configuration value in the set of nodes for the current store.

    Step one is getting the code for the currently set store. You can do this programmatically with the following

    $store = Mage::app()->getStore();
    $code  = $store->getCode();
    

    then, you can set a configuration value with the following call

    $config = Mage::getConfig();
    $config->setNode("stores/$code/web/unsecure/base_skin_url", 'value_to_set');
    

    Keep in mind this all needs to happen after Magento has bootstrapped the configuration object. Also keep in mind there’s a period of time where Magento will have a loaded configuration, but the store object will not be loaded. If this is the case you will not be able to load the store code from the store object.

    I did something similar in my Pulse Storm Chaos module. If you’re interested in working code it’s on Github.

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

Sidebar

Related Questions

I'm looking for a good solution for graphically viewing a SOAP-based web service and
I'm looking for a good solution to pass two generic objects to a viewpage
So I've been looking for a good solution everywhere but did not find anything
Looking at Mailgun as a good solution for sending HTML email to a large
I am looking for a good role based authorization solution to use alongside Authlogic.
I am looking for a good quality and reliable mapping solution for South Africa.
I have searched for a good couple hours now, looking for a solution to
I am looking for good tools to support support changing the version of the
I'm looking for a good solution to make my life easier with regards to
Is there a PHP equivalent of Rails migrations? Looking for a good solution for

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.