Magento force store_id session

This is how to force or change magento store_id into the session

// Start store emulation process
$appEmulation = Mage::getSingleton('core/app_emulation');
$initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId);

Leave a Reply