PHPackages                             imi/magento2-store-switch-all-store-views - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. imi/magento2-store-switch-all-store-views

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

imi/magento2-store-switch-all-store-views
=========================================

This module makes all store views available in the store switcher, regardless of their store or website.

0.4.1(1y ago)1824.6k↓37%10[2 issues](https://github.com/iMi-digital/magento2-store-switch-all-store-views/issues)[1 PRs](https://github.com/iMi-digital/magento2-store-switch-all-store-views/pulls)MITHTML

Since Feb 17Pushed 1y ago5 watchersCompare

[ Source](https://github.com/iMi-digital/magento2-store-switch-all-store-views)[ Packagist](https://packagist.org/packages/imi/magento2-store-switch-all-store-views)[ RSS](/packages/imi-magento2-store-switch-all-store-views/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

IMI StoreSwitch
===============

[](#imi-storeswitch)

[![Latest Stable Version](https://camo.githubusercontent.com/c50036d40a8543c81e576c28e3228736ca9da41d81860b326208a96bd8bb0bfd/68747470733a2f2f706f7365722e707567782e6f72672f696d692f6d6167656e746f322d73746f72652d7377697463682d616c6c2d73746f72652d76696577732f76657273696f6e)](https://packagist.org/packages/imi/magento2-store-switch-all-store-views)[![License](https://camo.githubusercontent.com/a8117668fabca3177e4fa49efdd8535052c9df027cf3fed65e9cb430a65ad289/68747470733a2f2f706f7365722e707567782e6f72672f696d692f6d6167656e746f322d73746f72652d7377697463682d616c6c2d73746f72652d76696577732f6c6963656e7365)](https://packagist.org/packages/imi/magento2-store-switch-all-store-views)

This Magento module extends the default store switcher and displays all store views, regardless of the store or website they're associated to. The default magento store switcher only show the store views which are associated to the currently active store.

It extends the core store switch `Magento\Store\Block\Switcher`.
By passing `\IMI\StoreSwitch\ViewModel\StoreSwitchModel` as an argument to the Switcher Block and using the `IMI_StoreSwitch::switch/languages.phtml` template you can switch between all stores of all websites.

It is possible to enable or disabled the switcher in default, website and store scope. The corresponding acl resource is `IMI_StoreSwitch::config`.

The switcher is disabled by default, it can be enabled with the config value `imi_store_switch/general/enable` or in the admin configuration on `Stores > iMi > Store Switch`.

### Show country code only or country code and name

[](#show-country-code-only-or-country-code-and-name)

By default the store switcher looks like this:

[![](country-code-and-name.png)](country-code-and-name.png)

There is also an option to only show the country code in the store view. If enabled, the available options will only display the country code, otherwise the name and country code are shown.

With the option enabled, it looks like this:

[![](country-code-only.png)](country-code-only.png)

### Restrict switching between websites

[](#restrict-switching-between-websites)

You can configure the store switcher to allow switching only between some websites instead of all. To do this, you need to set the `imi_store_switch/general/available_web_sites` config variable to the ids of the website you want to allow.

For example:

```
n98-magerun2 config:store:set --scope websites --scope-id 1 imi_store_switch/general/available_web_sites 1,2
n98-magerun2 config:store:set --scope websites --scope-id 2 imi_store_switch/general/available_web_sites 1,2
n98-magerun2 config:store:set --scope websites --scope-id 3 imi_store_switch/general/available_web_sites 3

```

This would allow switching between store views of websites with the id 1 and 2, but not 3 (store views within 3 will still work).

By default (if the configuration variable is not set), you can switch to all other websites. Set it to an empty string or null to disallow switching to another website.

### Use direct links instead of redirects

[](#use-direct-links-instead-of-redirects)

You can configure the switcher to use direct links instead of the redirect method. This however only works with stores that do not share an url. You can enable this feature either via the adminpanel under *Stores &gt; Settings &gt; Configuration &gt; IMI &gt; Store Switch &gt; General &gt; Use direct Links* or by cli:

```
n98-magerun2 config:store:set imi_store_switch/general/use_direct_links 1
```

Installing
==========

[](#installing)

The easiest way to install the module is from [packagist](https://packagist.org/packages/imi/magento2-store-switch-all-store-views) by running

```
composer require imi/magento2-store-switch-all-store-views
bin/magento module:enable IMI_StoreSwitch
bin/magento setup:upgrade
bin/magento cache:flush
```

If you're running this on a shop in production mode, run

```
bin/magento setup:static-content:deploy
bin/magento cache:flush
```

Porto Theme
-----------

[](#porto-theme)

This has partial support for the Porto Theme, without warranty.

You might want to try this layout update in `default.xml` of your child theme:

```

                    IMI\StoreSwitch\ViewModel\StoreSwitchModel

                    IMI_StoreSwitch::switch/direct/languages-porto.phtml

```

Hyvä Theme
----------

[](#hyvä-theme)

This has partial support for the Hyvä Theme, without warranty.

License
=======

[](#license)

© 2020 iMi digital GmbH. Licensed under [MIT](LICENSE).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance46

Moderate activity, may be stable

Popularity37

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~379 days

Recently: every ~474 days

Total

6

Last Release

383d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e83b21f6b852a0a527372174187cc61c74cbbfbdb34df74816ef77736224fff?d=identicon)[imi](/maintainers/imi)

---

Top Contributors

[![amenk](https://avatars.githubusercontent.com/u/1087128?v=4)](https://github.com/amenk "amenk (6 commits)")[![DanieliMi](https://avatars.githubusercontent.com/u/31039652?v=4)](https://github.com/DanieliMi "DanieliMi (6 commits)")[![sprankhub](https://avatars.githubusercontent.com/u/930199?v=4)](https://github.com/sprankhub "sprankhub (1 commits)")

---

Tags

hacktoberfestmagento2-module

### Embed Badge

![Health badge](/badges/imi-magento2-store-switch-all-store-views/health.svg)

```
[![Health](https://phpackages.com/badges/imi-magento2-store-switch-all-store-views/health.svg)](https://phpackages.com/packages/imi-magento2-store-switch-all-store-views)
```

###  Alternatives

[ethanyehuda/magento2-cronjobmanager

A module for managing scheduled cron jobs from magento's admin panel

3632.5M1](/packages/ethanyehuda-magento2-cronjobmanager)[snowdog/module-menu

Provides powerful menu editor to replace category based menus in Magento 2

3271.7M5](/packages/snowdog-module-menu)[baldwin/magento2-module-url-data-integrity-checker

Magento 2 module which can find potential url related problems in your catalog data

281773.3k](/packages/baldwin-magento2-module-url-data-integrity-checker)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[yireo/magento2-googletagmanager2

Add Google Tag Manager to Magento

167930.4k5](/packages/yireo-magento2-googletagmanager2)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

69344.4k](/packages/run-as-root-magento2-prometheus-exporter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
