Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Magento has its own stores switcher block. You can use it for your case. If you look at page.xml layout of base template, you will see something like this:</p> <pre><code>&lt;block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml"&gt; &lt;block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label"&gt; &lt;label&gt;Page Footer&lt;/label&gt; &lt;action method="setElementClass"&gt;&lt;value&gt;bottom-container&lt;/value&gt;&lt;/action&gt; &lt;/block&gt; &lt;block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/&gt; &lt;block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/&gt; &lt;/block&gt; </code></pre> <p>So, if you want to show store switcher in footer, you should edit file <code>page/html/footer.phtml</code> and add bellow code in place you want to show:</p> <pre><code>&lt;?php echo $this-&gt;getChildHtml('store_switcher'); ?&gt; </code></pre> <p>If you want to change dropdown to links, you should edit template <code>page/switch/stores.phtml</code> like bellow:</p> <pre><code>&lt;?php if(count($this-&gt;getGroups())&gt;1): ?&gt; &lt;div class="store-switcher"&gt; &lt;label for="select-store"&gt;&lt;?php echo $this-&gt;__('Select Store:') ?&gt;&lt;/label&gt; &lt;ul id="select-store"&gt; &lt;?php foreach ($this-&gt;getGroups() as $_group): ?&gt; &lt;?php $_selected = ($_group-&gt;getId()==$this-&gt;getCurrentGroupId()) ? 'active' : '' ?&gt; &lt;li class="store-&lt;?php echo $_group-&gt;getCode()?&gt; &lt;?php echo $_selected ?&gt;"&gt; &lt;a href="&lt;?php echo $_group-&gt;getHomeUrl() ?&gt;"&gt;&lt;?php echo $this-&gt;htmlEscape($_group-&gt;getName()) ?&gt;&lt;/a&gt; &lt;/li&gt; &lt;?php endforeach; ?&gt; &lt;/ul&gt; &lt;/div&gt; &lt;?php endif; ?&gt; </code></pre> <p>**NOTE: Maybe you need flush cache after edit anything in footer because Magento cache footer block by default.</p> <p><img src="https://i.stack.imgur.com/QJOy2.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload