Magento – Get Config Value for Website Scope

configurationprogrammingscope

How can I get a configuration value for a specific website?

There is Mage::getStoreConfig() but no Mage::getWebsiteConfig().

edit:

I am exporting configuration data on website level – so somehow I want the website scope setting …

Best Answer

Usually, you're not supposed to do this. Mage::getStoreConfig() will automatically return the store value, the website value, the global value, or the default value depending on the configuration of the field.

However, if you really need to disregard the store value and get the website value, you can do it this way:

Mage::app()->getWebsite()->getConfig('.../.../...')
Related Topic