Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [store-switcher]

The tag has no usage guidance.

28 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
895 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 ...
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
59 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
128 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
684 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
0answers
49 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
306 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
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
674 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
0answers
15 views

Unable to switch store

I upgraded my Magento website from 2.1.9 to 2.3.3. Now, I was unable to switch the store view, it is always the default store view that is displayed. I tried to disable all tiers modules, same issue.
0
votes
2answers
116 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
84 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
47 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
29 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
54 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
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
135 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
641 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. ...