Storeswitcher (not storeview-switcher) - Multistore404 Error When I Rename Store-View Code in Magento 1.7.0.2How to add a website switcher instead of store view switcher?Multi Stores not workingMagento Multistore categories giving errorMagento 2.0 multi domain/storeview setupMultistore switcher not visibleChanges to template files not updating in newly created storeviewMagento1.9 Assign products to different categories for different storeviewsStore Selection in Grid not working properlyUse Magento SID in a text link

Do US professors/group leaders only get a salary, but no group budget?

Why didn't Héctor fade away after this character died in the movie Coco?

Why is there so much iron?

What does Jesus mean regarding "Raca," and "you fool?" - is he contrasting them?

Help rendering a complicated sum/product formula

Geography in 3D perspective

Writing in a Christian voice

Using Past-Perfect interchangeably with the Past Continuous

Maths symbols and unicode-math input inside siunitx commands

Am I eligible for the Eurail Youth pass? I am 27.5 years old

Existence of a celestial body big enough for early civilization to be thought of as a second moon

What is the term when voters “dishonestly” choose something that they do not want to choose?

Is it possible to stack the damage done by the Absorb Elements spell?

Describing a chess game in a novel

What does "^L" mean in C?

HP P840 HDD RAID 5 many strange drive failures

Should I use acronyms in dialogues before telling the readers what it stands for in fiction?

Asserting that Atheism and Theism are both faith based positions

How could an airship be repaired midflight?

In what cases must I use 了 and in what cases not?

Loading the leaflet Map in Lightning Web Component

Practical application of matrices and determinants

Probably overheated black color SMD pads

gerund and noun applications



Storeswitcher (not storeview-switcher) - Multistore


404 Error When I Rename Store-View Code in Magento 1.7.0.2How to add a website switcher instead of store view switcher?Multi Stores not workingMagento Multistore categories giving errorMagento 2.0 multi domain/storeview setupMultistore switcher not visibleChanges to template files not updating in newly created storeviewMagento1.9 Assign products to different categories for different storeviewsStore Selection in Grid not working properlyUse Magento SID in a text link













3















On my current Magento project Wein-Partner.at I have to prepare multiple shops on one website.



For the different stores there will undoubtedly be different languages, also meaning multiple storeviews.
However, the language selector disappeared on me and I have no clue where to. Interestingly enough I have a currency selector instead.



Is there a way for me to make a "store-selector" at the top, not just a store-view selector?



Do I have to enable the "add storecode to URL" for that?



The plan is basically as follows:



There's the website (wein-partner.at) which will open on the homepage, showing the main-store. Below that, if you click on a category, you come into category-view with additional tags to choose from (region, price, ..). If you click on, let's say a region that has only one winemaker, you're supposed to be taken to the winemaker's subshop showing his logo instead of ours (I currently can't change store, so it always shows the vendor's storeview).



The template-file is the same as the category-view aside from the logo (each vendor has his own storeviews as well [mainly probably English, German, French and Italian]).



To sum up, this means that there will be 4 levels (Website - mainstore - store/storegroup - storeview/store)



edit01: I found this so far (app/design/frontend/default/your_theme/template/page/switch)



<?php if(count($this->getGroups())>1): ?>
<div class="store-switcher">
<label for="select-store"><?php echo $this->__('Select Store:') ?></label>
<select id="select-store" title="<?php echo $this->__('Select Store') ?>" onchange="location.href=this.value">
<?php /*foreach ($this->getStores() as $_store): ?>
<option value="<?php echo $_store->getUrl('') ?>"<?php if($_store->getId()==$this->getCurrentStoreId()): ?> selected="selected"<?php endif; ?>><?php echo $_store->getName() ?></option>
<?php endforeach;*/ ?>
<?php foreach ($this->getGroups() as $_group): ?>
<?php $_selected = ($_group->getId()==$this->getCurrentGroupId()) ? ' selected="selected"' : '' ?>
<option value="<?php echo $_group->getHomeUrl() ?>"<?php echo $_selected ?>><?php echo $this->escapeHtml($_group->getName()) ?></option>
<?php endforeach; ?>
</select>
</div>
<?php endif; ?>









share|improve this question
























  • If you have already created the other store views you can go into the admin System -> Configuration -> Design (tab) and set Package to 'base' and Theme to 'default'. This will show you the base Magento install. The Store Switcher will display in the footer. You can update layout XML to place this where you want it at on the page.

    – Jason Tipton
    Oct 28 '14 at 18:43











  • Ok in the default Magento design, the store switcher is visible in the footer like you said. That means in the custom design has to be either XML disabling it, or CSS making it invisible or moving it off the screen, right? edit: Firebug doesn't show any "switch" in the HTML, so it must have been removed per XML.

    – theHubi
    Oct 29 '14 at 12:26
















3















On my current Magento project Wein-Partner.at I have to prepare multiple shops on one website.



For the different stores there will undoubtedly be different languages, also meaning multiple storeviews.
However, the language selector disappeared on me and I have no clue where to. Interestingly enough I have a currency selector instead.



Is there a way for me to make a "store-selector" at the top, not just a store-view selector?



Do I have to enable the "add storecode to URL" for that?



The plan is basically as follows:



There's the website (wein-partner.at) which will open on the homepage, showing the main-store. Below that, if you click on a category, you come into category-view with additional tags to choose from (region, price, ..). If you click on, let's say a region that has only one winemaker, you're supposed to be taken to the winemaker's subshop showing his logo instead of ours (I currently can't change store, so it always shows the vendor's storeview).



The template-file is the same as the category-view aside from the logo (each vendor has his own storeviews as well [mainly probably English, German, French and Italian]).



To sum up, this means that there will be 4 levels (Website - mainstore - store/storegroup - storeview/store)



edit01: I found this so far (app/design/frontend/default/your_theme/template/page/switch)



<?php if(count($this->getGroups())>1): ?>
<div class="store-switcher">
<label for="select-store"><?php echo $this->__('Select Store:') ?></label>
<select id="select-store" title="<?php echo $this->__('Select Store') ?>" onchange="location.href=this.value">
<?php /*foreach ($this->getStores() as $_store): ?>
<option value="<?php echo $_store->getUrl('') ?>"<?php if($_store->getId()==$this->getCurrentStoreId()): ?> selected="selected"<?php endif; ?>><?php echo $_store->getName() ?></option>
<?php endforeach;*/ ?>
<?php foreach ($this->getGroups() as $_group): ?>
<?php $_selected = ($_group->getId()==$this->getCurrentGroupId()) ? ' selected="selected"' : '' ?>
<option value="<?php echo $_group->getHomeUrl() ?>"<?php echo $_selected ?>><?php echo $this->escapeHtml($_group->getName()) ?></option>
<?php endforeach; ?>
</select>
</div>
<?php endif; ?>









share|improve this question
























  • If you have already created the other store views you can go into the admin System -> Configuration -> Design (tab) and set Package to 'base' and Theme to 'default'. This will show you the base Magento install. The Store Switcher will display in the footer. You can update layout XML to place this where you want it at on the page.

    – Jason Tipton
    Oct 28 '14 at 18:43











  • Ok in the default Magento design, the store switcher is visible in the footer like you said. That means in the custom design has to be either XML disabling it, or CSS making it invisible or moving it off the screen, right? edit: Firebug doesn't show any "switch" in the HTML, so it must have been removed per XML.

    – theHubi
    Oct 29 '14 at 12:26














3












3








3


1






On my current Magento project Wein-Partner.at I have to prepare multiple shops on one website.



For the different stores there will undoubtedly be different languages, also meaning multiple storeviews.
However, the language selector disappeared on me and I have no clue where to. Interestingly enough I have a currency selector instead.



Is there a way for me to make a "store-selector" at the top, not just a store-view selector?



Do I have to enable the "add storecode to URL" for that?



The plan is basically as follows:



There's the website (wein-partner.at) which will open on the homepage, showing the main-store. Below that, if you click on a category, you come into category-view with additional tags to choose from (region, price, ..). If you click on, let's say a region that has only one winemaker, you're supposed to be taken to the winemaker's subshop showing his logo instead of ours (I currently can't change store, so it always shows the vendor's storeview).



The template-file is the same as the category-view aside from the logo (each vendor has his own storeviews as well [mainly probably English, German, French and Italian]).



To sum up, this means that there will be 4 levels (Website - mainstore - store/storegroup - storeview/store)



edit01: I found this so far (app/design/frontend/default/your_theme/template/page/switch)



<?php if(count($this->getGroups())>1): ?>
<div class="store-switcher">
<label for="select-store"><?php echo $this->__('Select Store:') ?></label>
<select id="select-store" title="<?php echo $this->__('Select Store') ?>" onchange="location.href=this.value">
<?php /*foreach ($this->getStores() as $_store): ?>
<option value="<?php echo $_store->getUrl('') ?>"<?php if($_store->getId()==$this->getCurrentStoreId()): ?> selected="selected"<?php endif; ?>><?php echo $_store->getName() ?></option>
<?php endforeach;*/ ?>
<?php foreach ($this->getGroups() as $_group): ?>
<?php $_selected = ($_group->getId()==$this->getCurrentGroupId()) ? ' selected="selected"' : '' ?>
<option value="<?php echo $_group->getHomeUrl() ?>"<?php echo $_selected ?>><?php echo $this->escapeHtml($_group->getName()) ?></option>
<?php endforeach; ?>
</select>
</div>
<?php endif; ?>









share|improve this question
















On my current Magento project Wein-Partner.at I have to prepare multiple shops on one website.



For the different stores there will undoubtedly be different languages, also meaning multiple storeviews.
However, the language selector disappeared on me and I have no clue where to. Interestingly enough I have a currency selector instead.



Is there a way for me to make a "store-selector" at the top, not just a store-view selector?



Do I have to enable the "add storecode to URL" for that?



The plan is basically as follows:



There's the website (wein-partner.at) which will open on the homepage, showing the main-store. Below that, if you click on a category, you come into category-view with additional tags to choose from (region, price, ..). If you click on, let's say a region that has only one winemaker, you're supposed to be taken to the winemaker's subshop showing his logo instead of ours (I currently can't change store, so it always shows the vendor's storeview).



The template-file is the same as the category-view aside from the logo (each vendor has his own storeviews as well [mainly probably English, German, French and Italian]).



To sum up, this means that there will be 4 levels (Website - mainstore - store/storegroup - storeview/store)



edit01: I found this so far (app/design/frontend/default/your_theme/template/page/switch)



<?php if(count($this->getGroups())>1): ?>
<div class="store-switcher">
<label for="select-store"><?php echo $this->__('Select Store:') ?></label>
<select id="select-store" title="<?php echo $this->__('Select Store') ?>" onchange="location.href=this.value">
<?php /*foreach ($this->getStores() as $_store): ?>
<option value="<?php echo $_store->getUrl('') ?>"<?php if($_store->getId()==$this->getCurrentStoreId()): ?> selected="selected"<?php endif; ?>><?php echo $_store->getName() ?></option>
<?php endforeach;*/ ?>
<?php foreach ($this->getGroups() as $_group): ?>
<?php $_selected = ($_group->getId()==$this->getCurrentGroupId()) ? ' selected="selected"' : '' ?>
<option value="<?php echo $_group->getHomeUrl() ?>"<?php echo $_selected ?>><?php echo $this->escapeHtml($_group->getName()) ?></option>
<?php endforeach; ?>
</select>
</div>
<?php endif; ?>






magento-1.9 multistore store-view switcher






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 21 mins ago









Teja Bhagavan Kollepara

3,00641949




3,00641949










asked Oct 28 '14 at 14:10









theHubitheHubi

792314




792314












  • If you have already created the other store views you can go into the admin System -> Configuration -> Design (tab) and set Package to 'base' and Theme to 'default'. This will show you the base Magento install. The Store Switcher will display in the footer. You can update layout XML to place this where you want it at on the page.

    – Jason Tipton
    Oct 28 '14 at 18:43











  • Ok in the default Magento design, the store switcher is visible in the footer like you said. That means in the custom design has to be either XML disabling it, or CSS making it invisible or moving it off the screen, right? edit: Firebug doesn't show any "switch" in the HTML, so it must have been removed per XML.

    – theHubi
    Oct 29 '14 at 12:26


















  • If you have already created the other store views you can go into the admin System -> Configuration -> Design (tab) and set Package to 'base' and Theme to 'default'. This will show you the base Magento install. The Store Switcher will display in the footer. You can update layout XML to place this where you want it at on the page.

    – Jason Tipton
    Oct 28 '14 at 18:43











  • Ok in the default Magento design, the store switcher is visible in the footer like you said. That means in the custom design has to be either XML disabling it, or CSS making it invisible or moving it off the screen, right? edit: Firebug doesn't show any "switch" in the HTML, so it must have been removed per XML.

    – theHubi
    Oct 29 '14 at 12:26

















If you have already created the other store views you can go into the admin System -> Configuration -> Design (tab) and set Package to 'base' and Theme to 'default'. This will show you the base Magento install. The Store Switcher will display in the footer. You can update layout XML to place this where you want it at on the page.

– Jason Tipton
Oct 28 '14 at 18:43





If you have already created the other store views you can go into the admin System -> Configuration -> Design (tab) and set Package to 'base' and Theme to 'default'. This will show you the base Magento install. The Store Switcher will display in the footer. You can update layout XML to place this where you want it at on the page.

– Jason Tipton
Oct 28 '14 at 18:43













Ok in the default Magento design, the store switcher is visible in the footer like you said. That means in the custom design has to be either XML disabling it, or CSS making it invisible or moving it off the screen, right? edit: Firebug doesn't show any "switch" in the HTML, so it must have been removed per XML.

– theHubi
Oct 29 '14 at 12:26






Ok in the default Magento design, the store switcher is visible in the footer like you said. That means in the custom design has to be either XML disabling it, or CSS making it invisible or moving it off the screen, right? edit: Firebug doesn't show any "switch" in the HTML, so it must have been removed per XML.

– theHubi
Oct 29 '14 at 12:26











3 Answers
3






active

oldest

votes


















5














The store switcher is loaded in the default theme via the layout (XML) file.




app/design/frontend/YOUR_PACKAGE/YOUR_THEME/layout/page.xml




Look for the following line of text:



<block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>


If you copy that line of XML to the location you want it you can then add a call to display it in your template (phtml) file like such:



<?php echo $this->getChildHtml('store_switcher') ?>





share|improve this answer

























  • <section id="header" class="header"> <?php echo $helper->getModulesByPosition('header') ?> <?php echo $this->getChildHtml('store_switcher') ?> </section> Like this?

    – theHubi
    Oct 30 '14 at 8:00












  • I've added the code in multiple sections, but can't seem to make it appear just yet. Am I missing some connection between the php and the XML?

    – theHubi
    Oct 30 '14 at 9:30











  • Sorry the XML snippet in my answer wasn't displaying. I have updated the answer. Be sure that you are copying the XML to the block where you want it loaded and also copying the php to the template location.

    – Jason Tipton
    Oct 30 '14 at 14:37











  • I noticed it was missing, but I know the XML code for the "page/switch" block. I've already copied the code to multiple locations before you edited your answer. I'm working on the fix though, as we speak.

    – theHubi
    Oct 31 '14 at 10:01











  • @JasonTipton How can i change header and footer for my multi store

    – zus
    Dec 26 '17 at 5:11


















1














Locate page.xml in app/design/frontend/base/default/layout directory.



Open the file with a text editor and look for the code below.



<block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>


To display the store switcher on the header of the page, we just have to change the location of the above code. This code is inserted in page/html_footerblock. Cut and paste it under the page/html_header block.



<block type="page/html_header" name="header" as="header">


Now to display the store switcher, go to header.phtml in the app/design/frontend/base/default/template/page/html directory and insert the following code.



<?php echo $this->getChildHtml('store_switcher') ?>





share|improve this answer
































    0














    make sure in your theme File stores.phtml is available if its not available get from this file from fresh magento from base template/page/switch/ folder



    then make sure you put code correctly ! hope it should work fine !






    share|improve this answer






















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f41668%2fstoreswitcher-not-storeview-switcher-multistore%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      The store switcher is loaded in the default theme via the layout (XML) file.




      app/design/frontend/YOUR_PACKAGE/YOUR_THEME/layout/page.xml




      Look for the following line of text:



      <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>


      If you copy that line of XML to the location you want it you can then add a call to display it in your template (phtml) file like such:



      <?php echo $this->getChildHtml('store_switcher') ?>





      share|improve this answer

























      • <section id="header" class="header"> <?php echo $helper->getModulesByPosition('header') ?> <?php echo $this->getChildHtml('store_switcher') ?> </section> Like this?

        – theHubi
        Oct 30 '14 at 8:00












      • I've added the code in multiple sections, but can't seem to make it appear just yet. Am I missing some connection between the php and the XML?

        – theHubi
        Oct 30 '14 at 9:30











      • Sorry the XML snippet in my answer wasn't displaying. I have updated the answer. Be sure that you are copying the XML to the block where you want it loaded and also copying the php to the template location.

        – Jason Tipton
        Oct 30 '14 at 14:37











      • I noticed it was missing, but I know the XML code for the "page/switch" block. I've already copied the code to multiple locations before you edited your answer. I'm working on the fix though, as we speak.

        – theHubi
        Oct 31 '14 at 10:01











      • @JasonTipton How can i change header and footer for my multi store

        – zus
        Dec 26 '17 at 5:11















      5














      The store switcher is loaded in the default theme via the layout (XML) file.




      app/design/frontend/YOUR_PACKAGE/YOUR_THEME/layout/page.xml




      Look for the following line of text:



      <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>


      If you copy that line of XML to the location you want it you can then add a call to display it in your template (phtml) file like such:



      <?php echo $this->getChildHtml('store_switcher') ?>





      share|improve this answer

























      • <section id="header" class="header"> <?php echo $helper->getModulesByPosition('header') ?> <?php echo $this->getChildHtml('store_switcher') ?> </section> Like this?

        – theHubi
        Oct 30 '14 at 8:00












      • I've added the code in multiple sections, but can't seem to make it appear just yet. Am I missing some connection between the php and the XML?

        – theHubi
        Oct 30 '14 at 9:30











      • Sorry the XML snippet in my answer wasn't displaying. I have updated the answer. Be sure that you are copying the XML to the block where you want it loaded and also copying the php to the template location.

        – Jason Tipton
        Oct 30 '14 at 14:37











      • I noticed it was missing, but I know the XML code for the "page/switch" block. I've already copied the code to multiple locations before you edited your answer. I'm working on the fix though, as we speak.

        – theHubi
        Oct 31 '14 at 10:01











      • @JasonTipton How can i change header and footer for my multi store

        – zus
        Dec 26 '17 at 5:11













      5












      5








      5







      The store switcher is loaded in the default theme via the layout (XML) file.




      app/design/frontend/YOUR_PACKAGE/YOUR_THEME/layout/page.xml




      Look for the following line of text:



      <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>


      If you copy that line of XML to the location you want it you can then add a call to display it in your template (phtml) file like such:



      <?php echo $this->getChildHtml('store_switcher') ?>





      share|improve this answer















      The store switcher is loaded in the default theme via the layout (XML) file.




      app/design/frontend/YOUR_PACKAGE/YOUR_THEME/layout/page.xml




      Look for the following line of text:



      <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>


      If you copy that line of XML to the location you want it you can then add a call to display it in your template (phtml) file like such:



      <?php echo $this->getChildHtml('store_switcher') ?>






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Oct 30 '14 at 14:36

























      answered Oct 29 '14 at 17:43









      Jason TiptonJason Tipton

      883713




      883713












      • <section id="header" class="header"> <?php echo $helper->getModulesByPosition('header') ?> <?php echo $this->getChildHtml('store_switcher') ?> </section> Like this?

        – theHubi
        Oct 30 '14 at 8:00












      • I've added the code in multiple sections, but can't seem to make it appear just yet. Am I missing some connection between the php and the XML?

        – theHubi
        Oct 30 '14 at 9:30











      • Sorry the XML snippet in my answer wasn't displaying. I have updated the answer. Be sure that you are copying the XML to the block where you want it loaded and also copying the php to the template location.

        – Jason Tipton
        Oct 30 '14 at 14:37











      • I noticed it was missing, but I know the XML code for the "page/switch" block. I've already copied the code to multiple locations before you edited your answer. I'm working on the fix though, as we speak.

        – theHubi
        Oct 31 '14 at 10:01











      • @JasonTipton How can i change header and footer for my multi store

        – zus
        Dec 26 '17 at 5:11

















      • <section id="header" class="header"> <?php echo $helper->getModulesByPosition('header') ?> <?php echo $this->getChildHtml('store_switcher') ?> </section> Like this?

        – theHubi
        Oct 30 '14 at 8:00












      • I've added the code in multiple sections, but can't seem to make it appear just yet. Am I missing some connection between the php and the XML?

        – theHubi
        Oct 30 '14 at 9:30











      • Sorry the XML snippet in my answer wasn't displaying. I have updated the answer. Be sure that you are copying the XML to the block where you want it loaded and also copying the php to the template location.

        – Jason Tipton
        Oct 30 '14 at 14:37











      • I noticed it was missing, but I know the XML code for the "page/switch" block. I've already copied the code to multiple locations before you edited your answer. I'm working on the fix though, as we speak.

        – theHubi
        Oct 31 '14 at 10:01











      • @JasonTipton How can i change header and footer for my multi store

        – zus
        Dec 26 '17 at 5:11
















      <section id="header" class="header"> <?php echo $helper->getModulesByPosition('header') ?> <?php echo $this->getChildHtml('store_switcher') ?> </section> Like this?

      – theHubi
      Oct 30 '14 at 8:00






      <section id="header" class="header"> <?php echo $helper->getModulesByPosition('header') ?> <?php echo $this->getChildHtml('store_switcher') ?> </section> Like this?

      – theHubi
      Oct 30 '14 at 8:00














      I've added the code in multiple sections, but can't seem to make it appear just yet. Am I missing some connection between the php and the XML?

      – theHubi
      Oct 30 '14 at 9:30





      I've added the code in multiple sections, but can't seem to make it appear just yet. Am I missing some connection between the php and the XML?

      – theHubi
      Oct 30 '14 at 9:30













      Sorry the XML snippet in my answer wasn't displaying. I have updated the answer. Be sure that you are copying the XML to the block where you want it loaded and also copying the php to the template location.

      – Jason Tipton
      Oct 30 '14 at 14:37





      Sorry the XML snippet in my answer wasn't displaying. I have updated the answer. Be sure that you are copying the XML to the block where you want it loaded and also copying the php to the template location.

      – Jason Tipton
      Oct 30 '14 at 14:37













      I noticed it was missing, but I know the XML code for the "page/switch" block. I've already copied the code to multiple locations before you edited your answer. I'm working on the fix though, as we speak.

      – theHubi
      Oct 31 '14 at 10:01





      I noticed it was missing, but I know the XML code for the "page/switch" block. I've already copied the code to multiple locations before you edited your answer. I'm working on the fix though, as we speak.

      – theHubi
      Oct 31 '14 at 10:01













      @JasonTipton How can i change header and footer for my multi store

      – zus
      Dec 26 '17 at 5:11





      @JasonTipton How can i change header and footer for my multi store

      – zus
      Dec 26 '17 at 5:11













      1














      Locate page.xml in app/design/frontend/base/default/layout directory.



      Open the file with a text editor and look for the code below.



      <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>


      To display the store switcher on the header of the page, we just have to change the location of the above code. This code is inserted in page/html_footerblock. Cut and paste it under the page/html_header block.



      <block type="page/html_header" name="header" as="header">


      Now to display the store switcher, go to header.phtml in the app/design/frontend/base/default/template/page/html directory and insert the following code.



      <?php echo $this->getChildHtml('store_switcher') ?>





      share|improve this answer





























        1














        Locate page.xml in app/design/frontend/base/default/layout directory.



        Open the file with a text editor and look for the code below.



        <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>


        To display the store switcher on the header of the page, we just have to change the location of the above code. This code is inserted in page/html_footerblock. Cut and paste it under the page/html_header block.



        <block type="page/html_header" name="header" as="header">


        Now to display the store switcher, go to header.phtml in the app/design/frontend/base/default/template/page/html directory and insert the following code.



        <?php echo $this->getChildHtml('store_switcher') ?>





        share|improve this answer



























          1












          1








          1







          Locate page.xml in app/design/frontend/base/default/layout directory.



          Open the file with a text editor and look for the code below.



          <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>


          To display the store switcher on the header of the page, we just have to change the location of the above code. This code is inserted in page/html_footerblock. Cut and paste it under the page/html_header block.



          <block type="page/html_header" name="header" as="header">


          Now to display the store switcher, go to header.phtml in the app/design/frontend/base/default/template/page/html directory and insert the following code.



          <?php echo $this->getChildHtml('store_switcher') ?>





          share|improve this answer















          Locate page.xml in app/design/frontend/base/default/layout directory.



          Open the file with a text editor and look for the code below.



          <block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>


          To display the store switcher on the header of the page, we just have to change the location of the above code. This code is inserted in page/html_footerblock. Cut and paste it under the page/html_header block.



          <block type="page/html_header" name="header" as="header">


          Now to display the store switcher, go to header.phtml in the app/design/frontend/base/default/template/page/html directory and insert the following code.



          <?php echo $this->getChildHtml('store_switcher') ?>






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 6 at 11:10









          Marius

          167k28319684




          167k28319684










          answered Sep 20 '16 at 4:57









          Henry RogerHenry Roger

          1476




          1476





















              0














              make sure in your theme File stores.phtml is available if its not available get from this file from fresh magento from base template/page/switch/ folder



              then make sure you put code correctly ! hope it should work fine !






              share|improve this answer



























                0














                make sure in your theme File stores.phtml is available if its not available get from this file from fresh magento from base template/page/switch/ folder



                then make sure you put code correctly ! hope it should work fine !






                share|improve this answer

























                  0












                  0








                  0







                  make sure in your theme File stores.phtml is available if its not available get from this file from fresh magento from base template/page/switch/ folder



                  then make sure you put code correctly ! hope it should work fine !






                  share|improve this answer













                  make sure in your theme File stores.phtml is available if its not available get from this file from fresh magento from base template/page/switch/ folder



                  then make sure you put code correctly ! hope it should work fine !







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Sep 3 '16 at 17:40









                  user3766719user3766719

                  808




                  808



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f41668%2fstoreswitcher-not-storeview-switcher-multistore%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

                      Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                      How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2