Questions tagged [store-switcher]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12
votes
4answers
6k views

Magento 2 Store switcher error in “section-config.js” Uncaught TypeError: Cannot read property '*' of undefined(…)

I'm implementing a custom store switcher in my custom theme. Block template is as follow: <?php if (count($block->getStores())>1): ?> <?php $id = $block->getIdModifier() ? '-' ....
11
votes
2answers
201 views

Show Default values option in store switcher in admin product edit page

I am using Magento Enterprise Edition and I am super admin of it. For some admins, I have allowed only particular store to be accessed. For me, the default values option in store switcher of ...
9
votes
1answer
881 views

Magento 2.1.9 : Change store based on country

Important: I don't want to buy any GeoIP extension. I have a Magento 2.1.9 website with multi-site and multi-store setup. I have setup website for KSA, UAE, CHINA, EGYPT etc. and under each website ...
9
votes
1answer
1k views

Magento 2: User login sometimes requires to login twice on multi store setup

I am trying to setup a multi store with shared cart. However, the user login sometimes does not work. The Store Switcher works fine, but the frontend User Login on 2nd and 3rd Store requires me to ...
7
votes
7answers
6k views

Magento 2, Change On hover instead of 'click' for mini cart

In magento 2. For mini cart and store switcher, they are dropdown with click. How to change on hover instead of 'click'. I had tried with jquery trigger click, but It don't work.
4
votes
1answer
136 views

Magento 2.3 - Website switcher instead of store switcher

I run a multi website setup where there is only one store and store view per website. In this scenario the store switcher won't work, so I'd like to implement a website switcher instead. I'd like to ...
4
votes
2answers
5k views

Magento 2.2 store view switching add ___store=default to url

Preconditions: Magento 2.2 With 2 store views ( default and en ) Steps to reproduce: Load home page: url = myeshop.com/ Switch store view: url = myeshop.com/?___store=en Switch again store view: ...
4
votes
1answer
564 views

M2 How to use URL parameter passing to select store view

We are setting multi language with different store view. In the launching page there are links to redirect to different store views. However the __store=storeview parameter seems cannot write to ...
3
votes
1answer
112 views

Products on multi-store Magento installation will display for one website but not the other

I have a Magento 1.9 store and we're trying to implement a multi store set up on it as we're in the UK and we want to cater for the US market too. I've installed the Mageworx Store & Currency Auto ...
2
votes
1answer
4k views

Store switcher not showing in frontend magento 2

I have created a new website store and store view in magento 2.1.3 backend and configure the new site language but i can't see the store switcher in frontend Here is my back end setup heare i ...
2
votes
2answers
3k views

Magento 2 : Requested store is not found when store switching

In magento 2.2, I have 2 store in my website. When, I switch to default store to other store. Then, it will display error like this 1 exception(s): Exception #0 (Magento\Framework\Exception\...
2
votes
0answers
38 views

Magento 2 language switcher cause form resubmission when i redirect back

Changing store view and going to the other page, when i click back in my browser it cause form resubmission. How can i, for example, set redirect on controller with GET method? Any help, please?
2
votes
0answers
57 views

Magento 1.9 multi website with language switcher enabled

I have a multilanguage and multicurrency installation: test.com and test.com/en test.com has Italian language and euro currency test.com/en has english language and dollars currency I needed to ...
2
votes
0answers
125 views

How to remove store code when changing store views?

So I've setup multiple views for my website, but the thing is, when I change store views, the URL ends up looking like this: https://www.domain.com/shop/product1.html?___store=english&...
2
votes
0answers
680 views

Switch store programatically magento 2

I am trying to switch stores programatically. I used following code to achieve it : /** * @var \Magento\Store\Model\StoreManagerInterface */ protected $_storeManager; public function __construct( \...
1
vote
2answers
152 views

Language switcher is broken when using multiple times : Magento 2.2.1

In language switcher when i switch from the default storeview (French in my example) to English, the url changes to: https://example.com/?___store=en Using the language switcher in the header, switch ...
1
vote
1answer
707 views

Website switching in magento 1.9 without changing the default url

I have a website in Magento 1.9 called www.example.com. In Magento, we know that we can create multiple websites so I have created like that multiple websites with their own store and store view. so I ...
1
vote
0answers
45 views

Magento 2.3.1 Change store view in controller_action_predispatch event

In my extension, the default storeview is English and I want to set Arabic storeview, only one time when the customer comes first time on my website. I'm using controller_action_predispatch event to ...
1
vote
0answers
268 views

Magento 2: I want to Display a Store switcher drop down in Top Header

I'm trying to make a drop-down for a store not store views on the top header. I had searched more and more, but unfortunately always getting the store views solutions. I had created an on ...
1
vote
1answer
4k views

Magento 2.3.0 - The store that was requested wasn't found

I have a multi website | Store | Store View setup on one magento 2.3.0 install, setup using this guide. For example xyz.com xyz.com/us xyz.com/uk As of late the main site xyz.com gives the ...
1
vote
0answers
47 views

Magento Multi Store - identical store code/language codes

I'm refering to this answer: https://magento.stackexchange.com/a/60657/51738 I know this question is quite old but I assume this workaround should still work on Magento 1.9.x and maybe also on ...
1
vote
2answers
245 views

Magento 2.2.3 - Can't get the URL of logo from core_config_data

I was trying to pull the logo_src from the database table core_config_data but can't return it on the frontend. I was trying to do this via objectManager and know that this is not the correct way. ...
1
vote
0answers
28 views

Avoid __store in URLs when behind a proxy

I have this setup in Magento 2 How does Magento determine the route / getting 404 behind proxy Magento behind a NGINX reverse proxy Rewriting store urls from /en/shop to __store=en Now I am only ...
1
vote
1answer
667 views

How to create popup to switch store on landing page

I am using Magento 2 and created 2 stores in site. By default store switcher is available only at bottom of page. I wish to have a pop up on first landing page which asks to select store.
1
vote
1answer
44 views

Magento Store, Storeview and Currency Changer

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) ...
0
votes
1answer
29 views

Magento 2 Storview switcher is gone?

In Magento 1.9, when we created multiple storviews and enable all of them, then in the top navigation part of the page on frontend, there will be a dropdown to let customers to switch between ...
0
votes
1answer
109 views

Magento 2 : Ui form element enable/disable on store switcher

In Magento 2.3.1, I want to do like : If all store view, then input text should be enable. Othervise, input text should be disable. I follow this answer : click here But, still I'm not getting ...
0
votes
1answer
552 views

How to get list to store views collection along with stores in magento2

I have two stores Sweeden and France and two storeviews for each sweedish,english and french,english respectively. i.e Store Sweeden(SE) has two Storeviews Sweedish(se) and English(se_en) ...
0
votes
3answers
1k views

Store View Switch Stopped Working After Magento 2.2 Upgrade

Since I have upgraded my website to Magento 2.2.0 (from 2.1.9), the store view switch stopped working on all the pages save for the homepage and the contact page. I have 2 store views for 2 languages,...
0
votes
0answers
15 views

Magento2 - multistore using different domains, relative folder in base url & store codes… language switcher broken

This is a Magento 2.3.2 CE project Let's assume url of default storeview is https://www.domain.com/store/es Url of second storeview is https://www.domain.pt/pt Language switcher gives error, ...
0
votes
0answers
14 views

Switch Store View on Login

I have created a custom module that observes the Login button so that when it is clicked I can switch the store view to a different store view. So far, this appears to be mostly working. However, upon ...
0
votes
0answers
22 views

Magento 2.3 Store View language switch not working properly

My site have two store views( English, Chinese). The default is English. I switched it to Chinese. It works fine when first switch. But when I refreshed the page or go to other page, it goes back to ...
0
votes
0answers
20 views

Magento 2.3: Change the store view when a certain category is clicked

How do I set up store views to be switched as soon as a category is clicked? We do run a Magento store that offers products for various customers. Let's set three categories in order to simplify the ...
0
votes
1answer
71 views

Magento 2.3.2 - Switch Website (store) without going to base URL

I'm using the following code to switch websites. app/design/frontend/[Vendor]/{Child_theme}/Magento_Store/templates/switch/languages.phtml <?php /** @var \Magento\Store\Block\Switcher $block */ ...
0
votes
2answers
46 views

What is the best AUTO store switcher for Magento 2?

What is the best AUTO store switcher for Magento 2? I have come across a few options just by searching on Google and they all seem to offer similar features. Is Amasty a better provider that Mage ...
0
votes
0answers
28 views

How To clear mini-cart when switching between stores in Magento 2.3

I Have 2 stores in my website, I want to clear the Mini-cart, Cart during store switch. For this i wrote below code, app\code\E25media\CustomBlocks\Controller\Cart\Index.php <?php namespace ...
0
votes
0answers
53 views

Magento 2 store switcher problem

I am having this code in template for store switcher in magento 2.3.1 <?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ // @...
0
votes
0answers
26 views

Want to show the Stores based on countries

I need to show the stores name like saudi / oman / dubai. Each stores have two store views (Arbic & English). I want to display these Stores according to their countries. For Example Saudi ...
0
votes
0answers
57 views

Magento 2 : store switcher not display store vise filter

I added store switcher in UI grid. Then, I switch store view. But, I can't get proper collection in grid. I used same answer in my module. But, when I switch to Russia store it will still display ...
0
votes
0answers
37 views

How to setup multi setup using multi website in magento 2 [duplicate]

I want to set up multiple stores in multiple websites and display all store in the website.
0
votes
0answers
47 views

Store switch is not working for custom categories

I have added a categories and called that through CMS block. When I go to that category from homepage it is going fine. After that if I try to change the language,it is not accpeting. say: http://...
0
votes
0answers
131 views

Magento 2 store switcher - store cookie not changing because of full page cache

I have a Magento 2 site with a basic store switcher that lets the user switch between 2 stores using the URL method (e.g __store=default). When I have FPC enabled, the cookie that sets the current ...
0
votes
0answers
617 views

Setting the Store View programmatically in Magento 2

I need to have the functionality where if a customer has a VAT number added to their account then I need to change them to a trade store view. I have the following code however the store view doesn't ...
0
votes
1answer
283 views

Magento Store Switcher display one store instead of all

I've create multiple website like below: And in frontEnd i've displaying Store Switcher in the footer but my problem is not displaying all the stores defined above it will display only main website. ...