A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [store-view]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Get assigned stock source code by current store id

I have multiple store view and i need to retrieve all assigned source code for current store How can i achieve this?
0
votes
2answers
74 views
+50

“Single Store Mode” data transfer

I have a website where currently only 1 website/store/store view exists. I can therefore switch to "single store mode". The general problem is, that data was partially edited in the "All Store Views" ...
3
votes
1answer
643 views

Programmatically create static block and add it to selected store views

I need to create static blocks programmatically. How to assign a block to selected store views? I've found tutorials about creating static blocks, but they all add the block to all store views, like ...
1
vote
2answers
759 views

Link directly to a specific store view?

I'm currently running Magento 2.2.1 and want to create links to a specific store view. Each store view is translated to a certain language, and I'd like that links placed on blogs written in that ...
0
votes
0answers
8 views

Magento 2.3 : change store view bypass from url

i want to change my store view from url is it possible ? so I just type url : http:// xxx. com/urltochangestoreview
0
votes
2answers
30 views

Get URL of Current Store View Store Magento 2

I have created multiple stores in one. Now when I change the store view it definitely changes and I have set the Base URLs for this store view accurately. But when I try to get the current store view ...
1
vote
2answers
1k views

magento 2 multiple store views with sub domain url

I am trying to have two different store views with different themes but has the same catalog and settings. default store view: website.co.uk second store view should have: migrate.website.co.uk Both ...
1
vote
2answers
24 views

How can i translate custom elements in .phtml file according to store view

I have added a tag in form.phtml file which shows on view Cart Page. <h1>Custom Cart Information</h1> which effects as Hence my store is multi-lingual when i change store view to ...
0
votes
1answer
22 views

Magento 2 : How to find out store codes using front-end website only?

I would like to find out the different ways how one can identify store views if website having multi store codes. PS. I'm using store switcher at the moment but is there any other way Magento ...
6
votes
2answers
2k views

Get page URL from current page, different store-view

I'm using different store-views to create different language versions of a shop. Now I'm trying to add links to the other pages. However, I can not find a way to get the actual URL from the other ...
0
votes
1answer
41 views

How to get current store ID for Magento 2.3.2?

How to get current store ID for Magento 2.3.2 version, I set up multiple stores (KS ,UAE), so want to know stores ID.
0
votes
3answers
49 views

Delete Stores in Magento 2

I have a Magento Site which have around 20 stores. I have deleted 17 stores as they are not useful to me but when I go to Admin panel and go Catalog -> Categories then it shows me the following ...
6
votes
2answers
1k views

New website/store view, all pages 404 (including homepage)

As per the title, I've set up a new store on a different domain and all pages including the home page are returning 404. I've tried pretty much everything, and I'm wondering if any of you can think ...
2
votes
3answers
3k views

Get values of your attribute option text from product

I want to get value of attribute option text from product based on store id. I want to get admin text for attribute option. $attribute_option_id = Mage::getResourceModel('catalog/product')->...
0
votes
2answers
17 views

Arabic store price format replace , with . magento 1.9x

How can I change the format of the price in the frontend for the Arabic store? Eg:د.إ.‏ 1٬486٫00 to د.إ.‏ 1٬486.00 instead of, I need to change with.
0
votes
0answers
30 views

Javascript problem When changing production mode

I have this console error that occurs only when setting to production and nothing works as expected in storefront view. It works fine when the mode is set to the developer and no console errors are ...
0
votes
0answers
14 views

How we can create store view programmatic

I am trying to create the store view if not exist programmatically. I have tried the below code: How to create store view or store programmatically and do it right in Mage 2? However, its not ...
0
votes
1answer
47 views

Migrate 1.9 to 2.2 when StoreView is not assigned to Store/Website

So maybe someone have already experienced something like that and will be able to help me out here: I have to migrate a 1.9 Magento to 2.2 which I do quite often in the last months and which is ...
0
votes
1answer
29 views

Keep default store selected in Store switcher in Admin

I have created custom grids in Admin and given store switcher by XML file as below. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
0
votes
0answers
19 views

Magento 2 duplicate product entry in default store view

In my magento2 store I only have one single store assigned to the default view and all the products in were in "all store view". So the store view column in the csv was blank. But somehow someone ...
0
votes
0answers
6 views

Magento 2 search based on store view not working fine

I have two different stores like cars and bikes. When I'm in car store and when I search for some bike products I get vice versa in bike store also. I also updated the attributes to store view. My ...
0
votes
2answers
2k views

Magento 2 change store view

I'm trying this script to detect browser language and redirect to Italian store view if the language is Italian or English store view if the language is not Italian. The country code is correctly ...
1
vote
1answer
28 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
31 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
49 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 ...
18
votes
3answers
2k views

Magento Adding a new Language?

I've looked at several pages regarding adding another language support to the Magento cart, however, there seems to be something missing. The usual is to download translation through the admin ...
1
vote
1answer
661 views

Unset session when store is changed

Actually magento share session with differents Store/view. Is there a way to unset session when i switch store (not website, store). I don't want to share cart between two differents stores. Is it ...
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. ...
1
vote
3answers
1k views

Magento 2 store-view progmatically

In Magento 1 i used something like this to create 2000 store views on the fly. How would I do the same thing in Magento 2? require_once('app/Mage.php'); umask(0); Mage::app('admin'); $strnm =1; ...
1
vote
1answer
746 views

Can I redirect people to the correct store view based on IP?

I am using GEOIP to redirect customers to either the US site or the UK site, but recently the client wanted to have the flags at the top of the site for the customers to manually switch to the US or ...
0
votes
1answer
41 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
1answer
851 views

Magento 2: get Logo URL for a specific store in controller

I just started developing a module in Magento 2. It is a copy of a module I made in Magento 1. I'm already stuck with Magento 2 logic. I want to get the logo URL of every store view. In Magento 1 I ...
2
votes
0answers
19 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; ...
4
votes
1answer
1k views

Set product name per store view programmatically in Magento 2

How can I set the name of a product in a specific language (store view)?
0
votes
0answers
14 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
59 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 ...
5
votes
1answer
927 views

How to show storeview in ui component grid in Magento 2?

I want to show storeviews in ui component grid. I am using this code in app\code\Mymodule\Myimages\view\adminhtml\ui_component\communieimages_name.xml <column name="store_ids" class="Magento\Store\...
7
votes
1answer
1k views

Magento2: Remove Store Code URL only for default store

I am developing a Magento 2 store with two store views, one for each language(English and Italian). I turned on the "Add Store Code to Urls" option from backend, so my URLs looks like: http://mystore....
1
vote
1answer
866 views

Remove multi-language storeview code from the url - Magento1.9

I am using Magento multistore view for multiple languages like english, german, french etc. To have clean urls i have enabled the settings "Add Store Code to Urls" to "yes". Now it shows following ...
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?
1
vote
3answers
5k views

Deleting website in Magento gives page not found error

I have multiple websites in a store. I want to delete two of them. Including the main website and its stores and store views. After I delete them when i try to access my site from the websites that ...
2
votes
1answer
94 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
18 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 ...
2
votes
1answer
1k views

Magento 2 : Store Switcher In admin not working

In Magento 2 admin side, I added store switcher in phtml file using this code. protected function _prepareLayout() { $this->getToolbar()->addChild( 'store_switcher', ...
2
votes
1answer
809 views

Hide shipping method for multiple store views

I am trying to create a solution for different shipping options in cart based on store view and would really appreciate any advice. In Magento I have 1 website (abc.com) with 2 store views (general) ...
0
votes
1answer
918 views

language name declaration - Magento 2

I am looking for where the locale name declared in language pack? We can see the list of language in admin or using command line Store > Configuration > General > Locale Option or bin/...
3
votes
1answer
270 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
18 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!
8
votes
2answers
6k views

Using URL subfolders for multi-language Store Views in Magento 2

I configured Magento 2 with two Store Views in order to have two front-end languages (English and Italian) and I would like to have the following behaviour: http://example.com/ --> Store View ...
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,...