1

I try to implement a store switcher for switching between Store,Store View and Currency.

With using this line: Mage::getModel('core/store_group')->getCollection();

I get the Store names (3 kinds) like: store 1,store 2

Store 1 has 3 Store views (German, English and Chinese)

How can i generate the link for switching between the Stores? (Not between Store Views)

2
  • Mage::app()->getStore($_websiteId)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
    – Mike
    Jun 26, 2014 at 14:52
  • Please add it as an answer! Jul 27, 2014 at 23:20

1 Answer 1

-1

Solve:

Mage::app()->getStore($_websiteId)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_L‌​INK);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.