I want to programmatically change the base URL (secure and unsecure) for a magento store.
The settings can be changed manually in the backend, seen in the following picture:
http://geo.magenting.com/m/kb/images/attachments/change-magento-base-url_1.jpg
I want to change the values at 4 & 5 for each of my stores.
Something like this:
$store = Mage::getModel('core/store')->load($storeId);
$store -> setBaseUrlSecure("xyz.com");
$store -> save();
Any help on how I can do that?