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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:36:18+00:00 2026-05-14T00:36:18+00:00

I’ve noticed that Magento keeps the URL to the logo it uses for each

  • 0

I’ve noticed that Magento keeps the URL to the logo it uses for each store you setup in the core_config_data table.

If I run this SQL:

SELECT * 
FROM core_config_data`
WHERE path = 'design/header/logo_src'

I get a list of stores and their associated logo. I also get a config_id and a scope_id.

I’d like to be able to update these logo’s programmatically behind the scenes but I can’t figure out how to relate this table’s data back to a store name.

config_id and store_id got to somehow link back to another table that sets up the relationship. Magento’s EAV model, ugh 🙂

Any ideas?

  • 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-14T00:36:18+00:00Added an answer on May 14, 2026 at 12:36 am

    Magento provides an API to set and retrieve configuration values. I wrote an article about fetching data out of the config. You’ll want to review it if any of the terminology below confuses you.

    As for setting the variables, it’s not quite as simple as saying “I want to set the design/header/logo_src” variable to “this value”. You also need to specify which website you’re saving the values for, and which store you’re saving the values for.

    It’s important to be careful here. I haven’t looked deeply at the system to see if Magento is enforcing the “show for website, show for site” granularity of the config values at the back-end/resource level, or only at the UI level. My instincts say it’s the later, which mean you might end up saving a value at the website/store level that wasn’t intended to be savable at that level, and that could lead to the dreaded Undefined Behavior.

    In the 1.4 community edition you can see where Magento is saving the config values at the following location

    File: app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php
    
    //around line 126
    Mage::getModel('adminhtml/config_data')
        ->setSection($section)
        ->setWebsite($website)
        ->setStore($store)
        ->setGroups($groups)
        ->save();
    

    Caveats out of the way, the code for you to update just the logo for the top level store/website config would be.

    //create a groups array that has the value we want at the rigth location
    $groups_value = array();
    
    $groups_value['header']['fields']['logo_src']['value'] = 'images/logo.gif'; 
    Mage::getModel('adminhtml/config_data')
        ->setSection('design')
        ->setWebsite(null)
        ->setStore(null)
        ->setGroups($groups_value)
        ->save();   
    

    The line

    Mage::getModel('adminhtml/config_data')
    

    instantiates a Magento model.

    The 'design' in the setSection method as well as the 'header' and 'logo_src' string correspond to the config URI

    design/header/logo_src
    

    I’m pretty sure the nulls passed to setWebsite and setStore tell the object you’re saving this value at the top level. You could also pass in store and website IDs. (I’m a little shaky on that, but when you save the logo normally that’s what the system is doing)

    The 'fields' and 'values' are hard coded. The intent of the object is to save multiple config values at once from all the groups in a section.

    Checkout the saveAction method in the above controller if you’re curious.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into

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.