Questions tagged [store-view]

Denotes questions regarding store views (scope, creation, management).

Filter by
Sorted by
Tagged with
0
votes
1answer
11 views

How to get the store code in a phtml file of Magento2?

In a custom phtml file I have to get the code associated to the store view (not the Id), any idea how to get this?
2
votes
1answer
18 views

How to get all stores collection include the store id 0 in magento 2

I have tried to get all the stores in Magento 2. $stores = $this->storeManager->getStores(); $ids= array(); foreach ($stores as $storeId => $storeData) { $ids[] = $storeId; } print_r($...
0
votes
0answers
21 views

The store that was requested wasn't found. Verify the store and try again in orders grid Magento 2

When I navigating to Admin dashboard -> Sales -> Orders. I am having this issue "The store that was requested wasn't found. Verify the store and try again." I cannot able to see my orders list, I can ...
0
votes
1answer
24 views

Category Link go to 404 on store switch

I have used Magento 2 with 2 store view and My default store is English and set Category Link in Mega Menu but when i change my Store view from English to french that category link goes to 404 page. ...
2
votes
0answers
14 views

Magento 2 : Set current store throughout the site

I want to set currentstore according to geoip of customer.for that i have tried below code: MagentoDir/app/code/Shasha/Geoip/Observer/Redirect.php <?php namespace Shasha\Geoip\Observer; ...
0
votes
0answers
13 views

How to display product categories in different languages when adding a product?

I am using Magento v2.3.2. Facing this issue, I have store with 2 views English and German, everything is setup "correctly" but when I am trying to add new product, I cannot switch the view. The ...
1
vote
1answer
57 views

How to display all stores on the home page

How in custom created module to make the logic of receiving and displaying all links to stores. The display should be on the homepage. I tried the solution that suggested Google search, but I can’t ...
0
votes
0answers
6 views

Magento 2 CE/EE - Custom price and quantity at Store or Store view level

in Magento2 (CE or EE version) there's a way to set custom quantity and custom price for products based on Store or Store view? Or it's required to set that informations at Website level?
0
votes
0answers
11 views

Magento 2 Multi website for “product_websites” column in CSV file

I'm using multi website. When I upload products using CSV I set "product_websites" column as "default" instead of "sports". Again I make changes in "product_websites" column as "sports" and tried to ...
3
votes
1answer
132 views

Magento 2.3 : Customer after login Storeview switcher/redirect problem

I have created 3 store for example: Australia India USA and created related store view as show below: In my case if any customer is register from any store or store view. They are successfully ...
0
votes
0answers
16 views

Redirect to Home Page on store switch

Magento 2.2 How to redirect to homepage on store view switch? I have a multilingual site and want to redirect to homepage every time the store view change. Thanks!
2
votes
1answer
77 views

Magento 2: Extending Store Group model

We need to extend the Store Group model a bit by adding a couple of fields, needed mostly for external integrations. Following the example here we've added the extra columns to the database. Now we ...
0
votes
0answers
24 views

Magento 2 : What tables should be created to make product price Store-view wise? [ Multi Storeview Pricing ]

I want to create functionality like product prices can be set at the store-view level for that I've added one more option as Storeview in a configuration for Stores > Config > Catalog > Catalog > ...
1
vote
1answer
80 views

magento 2.3 add store view switcher in custom header template

I have two store views for two languages english and spanish in magento 2.3 EE. The english store is default one and I want to add store view switcher drop down in my custom header template. How to ...
1
vote
0answers
27 views

Magento 2.3: problem understanding store views

I am having problems in understanding the Magento 2 store views. We have used the default settings in Admin -> STORES -> Settings -> All Stores We are only using one store view. However, I have not ...
0
votes
1answer
92 views

Magento 2 : How to set the different product price to Storeview?

I have this Extension StoreViewPricing, you can set product price in store views, but in Layered Navigation when I'm applying price filter it's not showing proper results as expected. Here's the ...
1
vote
1answer
85 views

Magento 2 : Change Store view programmatically at front end side

I want to change store view programmatically same as like when we switch store from store switcher at front end side. I try this answer. But, it's not working. It's just change store view name from ...
1
vote
2answers
33 views

Magento 2: How redirect from controller to another controller to POST method?

I am trying to redirect the customer when their store view is not correct. When I redirect the _request method it is GET and I need it to be POST if ($currentStore !== $customerStore) { $...
1
vote
0answers
17 views

Store, websites Magento 2 catalog

I'm very confused. I exported all my products and saw I have the same product in default store and "no store", I mean, my catalog have the same products twice. Not sure what it causes and how this ...
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
23 views

Magento 2.3.2 Set Product Image Role Per Store View

I want to parse my product data and ensure all child products in each store view have swatch_image, image, small_image, thumbnail image roles set to the current image. I have tried $_store = $this-&...
1
vote
2answers
86 views

I Need Help In Issue In My Theme Configuration: Magento 2

I think there is must be in-store and storeview the name of my store and store view ?? it was working but now when I go to edit anything in this design configuration it does not apply on my website .. ...
0
votes
0answers
15 views

Magento 2 some urls redirected to specific store view

I have 2 websites and three store views set up in my mangento 2 : domain.nl domain.be domain.be/fr/ I dont know for some reason, some urls in front-end and back-end get redirected to domain.be/fr/. ...
0
votes
0answers
21 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
0answers
29 views

Magento 2: Allow switching store view on a CMS page with different URL keys

My store has multiple store views for different languages. When the user is on a CMS page (for example 'contact') and switches to a different store view, the URL remains the same so the user sees the ...
0
votes
2answers
51 views

Magento 2.3.1 Get Allowed Countries by storeview

It seems in Magento 2, we can only configure Allowed Countries per WEBSITE or STORE. but not STOREVIEWS. I found this solution https://magento.stackexchange.com/a/245401/26668, where we can add ...
0
votes
0answers
17 views

Magento 2 check whether value retuned from SCOPE_STORE Config is default(0)

I have this: $data = $this->_config->getValue(self::MY_CONFIG_PATH, ScopeInterface::SCOPE_STORE); $data will contain the my data whether it's a string or [] for the simplicity lets say it ...
1
vote
1answer
26 views

Magento 2: Load storeview id in controller returns error

I loaded following class into my controller: use Magento\Store\Model\StoreManagerInterf‌​ace; And injected it in my constructor: StoreManagerInterf‌​ace $storeManagerInterface, However it returns ...
0
votes
1answer
35 views

Remove Store name in URL

I setup store theme with demo. It setup 5 stores with different homepage. now my URI is including store name, which I dont need my store URI should be 'xyz.com/' How I can remove this /english1 ...
1
vote
0answers
76 views

How to rewrite store view code in Nginx?

I have some trouble to fix this issue. I have a Magento 2 installation with two websites and several store views: https://www.websiteone.com/onenl https://www.websiteone.com/oneen https://www....
0
votes
1answer
27 views

One storeview error to many redirect

We have a multistore in multilanguage and as test we set one to connect the media and static url through static.domain.com to a CDN but that is not working. But now the template for that storeview ...
0
votes
0answers
24 views

Setting up Multi-Website/Store Views

I am looking to setup my Magento stores as follows: Australia [URL: https://example.com.au/] >Australia >>English United States [URL: https://example.com.au/us/] >United States >&...
0
votes
0answers
22 views

controller not reaching magento2

One strange thing is happing in my application, I have one custom link in my email. On development server everything works fine, but on production server when I clicked the link nothing happens, ...
0
votes
1answer
21 views

M2 - Search for translations

I need to translate some notification messages, but I can't find the correct string to translate... I've installed a extension for a dutch language pack, but where can I find the files where the ...
0
votes
1answer
33 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
36 views

Magento 2: Multiple stores with multiple languages, how to setup properly?

I'm building a webshop that contains multiple stores, each store has multiple languages, like so: Website A |__ Store A |__ StoreView EN |__ StoreView DE |__ StoreView FR ...
0
votes
1answer
32 views

Magento 2 Create multiple store views in an easy way?

I need to create more than 100 store views to my Magento website. Is there an "easy" way of doing this, like by using command line? It will take a long time if I create each store in admin -> stores ->...
1
vote
0answers
29 views

Magento 2 Model getData for field at specific store_id

In my Model I have a method getSummary() E.G: public function getSummary() { return $this->getData(BlogInterface::SUMMARY); } I have 3 stores: en_1,fr_2,de_3 I've only set summary in ...
1
vote
0answers
59 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
21 views

magento hide product form main page

In my Main Website, I create 2 Store name ram and shyam store and every store have 2-2 view. I upload product in ram store and shyam store. Now when I go to ram store view home page display all ...
2
votes
1answer
137 views

Product image going to the wrong URL

I have this block at the bottom of cms pages that are created by bluefoot and when you click on the image it takes you to a long URL like if it was being searched for but if you click on "add to cart" ...
2
votes
2answers
38 views

What is the correct way to set up a store/store views?

I am new to Magento and am after some rather initial guidance. Firstly, what is the correct way to set up stores / store views? Should it be as per option one or two below? Option 1 >WEBSITE >...
4
votes
1answer
38 views

Magento 2 - How to Disable cart only for a specific store view?

I need to hide/remove cart only for PROFESSIONAL ENGLISH store view. Store structure on attached image. Is this possible?
0
votes
1answer
40 views

Help please with correct saving multiselect field for Store view edit form

Please help with correct saving adding custom field for Store View edit form. Default Magento Store view edit form: Stores->All Stores->Any Store https://screencast.com/t/WPA3owq3 https://...
1
vote
2answers
355 views

Magento2: Adding custom attribute to category doesn't show store specific value

I have created a custom category attribute using the custom code from here, attribute created successfully and able to save the value. But I want to save store specific value in this custom attribute,...
0
votes
1answer
21 views

It's possible to change language without changing store view?

I wonder if there is a way to setup a button to change the locale without having to change the store view, so this way you could create: Store 1 Store 2 Store 3 And change languages no matter in ...
1
vote
0answers
20 views

default store view is not selected by deafult when open any category in magento 2 admin

I have migrated Magento 1.9.3.1 to Magento 2.3.0 I am getting an issue in the admin. When I open category in admin side then English store is selected by default. How can I make default_store_view ...
2
votes
0answers
39 views

Multi Store views data

In my site having multi stores. I want to made extension for Multi Store views in the store view option in custom module in adminhtml. How to add functionality for that? i want save the data for ...
5
votes
2answers
136 views

Error showing special prices when changing store view - Magento 2.3.1

I have 2 store views, one for normal customers (product prices including tax) and one for wholesale customers (product prices excluding tax). See images for reference. Normal Store View (product ...
0
votes
0answers
50 views

Change store view using code when starting session - Magento 2

I want to make a change of store view through code. I have created the next plugin for when the user logs in the system makes a change of store view, but the change is not maintained, I want to switch ...