Magento same page URL on different stores
-
16-10-2019 - |
Question
I've installed Magento Fishpig module for Wordpress integration.
I have two stores and a common blog. The only problem is that every time I accessed the blog page, the first store's layout is displayed. Any (simple) idea about how can I make it to remember the store from where the blog page is being accessed?
Solution
Access the blog via the following url string:
www.mysite.com/blog/?___store=secondstore
Take note, that's 3 underscores. This could potentially be coded into the index.php in the /blog/ with something like:
$_GET['___store'] = Mage::app()->getStore()->getId();
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange