Get website-level configuration in Magento

I stumbled across this one a couple of times now, and it’s caught me out every time. With Magento, you have the method Mage::getStoreConfig() to get a store-level config, but nothing obvious to get a website-level configuration (such as a default URL for the website). So I used this; Mage::app()->getWebsite($websiteId)->getConfig(‘web/unsecure/base_url’) It’s the same syntax as […]