Download the PHP package imi/magento2-store-switch-all-store-views without Composer

On this page you can find all versions of the php package imi/magento2-store-switch-all-store-views. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento2-store-switch-all-store-views

IMI StoreSwitch

Latest Stable Version License

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

By default the store switcher looks like this:

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:

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:

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

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 > Settings > Configuration > IMI > Store Switch > General > Use direct Links or by cli:

Installing

The easiest way to install the module is from packagist by running

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

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:

Hyvä Theme

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

License

© 2020 iMi digital GmbH. Licensed under MIT.


All versions of magento2-store-switch-all-store-views with dependencies

PHP Build Version
Package Version
Requires magento/module-cms Version *
magento/module-store Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package imi/magento2-store-switch-all-store-views contains the following files

Loading the files please wait ....