Archive for December, 2011
Compaq CQ60 Display Issues – The Unexpected Part 3
by Dan on Dec.29, 2011, under Hardware
I recently had an unexpected part 3 to this tale the other day, when the display went. Again. But this time, different symptoms. This time, the backlight went. Oh sh*t, replacing LCD panels isn’t exactly cheap, and since the backlight diffusers and CCFL’s are fused to the back of the LCD panel itself, there was no way of replacing the individual unit.
Continue reading “Compaq CQ60 Display Issues – The Unexpected Part 3” »
Get website-level configuration in Magento
by Dan on Dec.07, 2011, under Magento, PHP
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 what’s used in Mage::getStoreConfig(), but uses getWebsite() instead of getStore(). Hopefully this won’t catch me out anymore!