Questions tagged [store-view]
Denotes questions regarding store views (scope, creation, management).
578
questions
2
votes
1
answer
418
views
Magento2 : Redirect store view on the basis of currency switch
We have 2 store views (en and us) on our website. we have around 5 currencies in that. we need to do the following functionality on our website.
When customers switch the currency to $ (US Dollar) ...
0
votes
1
answer
326
views
How to sort ordering of store view change list in Magento 2.3.4
I want to sort alphabetically this store view change list. Can anyone help with how can I do this in magneto 2.3.4?
0
votes
1
answer
389
views
Homepage for a new store : There was no Home CMS page configured or found
I've just created multiples 'Pro' stores like this one. The Mayotte store is already existing and working. The Mayotte pro is a new store based on the same website as the Mayotte one.
But when I go ...
0
votes
1
answer
459
views
Products are not updating programmatically Magento2
I'm trying to update product details by this code -
public function updateProducts(){
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); // instance of object manager
...
0
votes
1
answer
656
views
How to add scope option in adminside magento 2
How to add website scope option in my custom module to the admin side
programmatically if any idea or suggestion link please let me know to
do this functionality.like this see the below snap.
3
votes
0
answers
200
views
Magento 2: How to Add or Update different store product attribute options label based on default label and store id?
I have a custom Product options dropdown attribute and i want to add or update the label option based on the store id and default label, for example, I have a data like this:
$attribute_code = '...
1
vote
0
answers
21
views
Show Store Stock against each Products
need to show, store wise qty.
> karama 01 19 left
> karama 02 10 left
there is two stores and qty mentioned
1
vote
0
answers
82
views
Is it possible to view 'default storeview' dropdown attribute values in product Admin Grid?
I've got a dropdown attribute as is in M2.3.4 admin
Admin => 1
Default Store view => 'Text for id 1'
Admin => 2
Default Store view => 'Text for id 2'
But when I go to product section, even ...
0
votes
1
answer
66
views
magento 2 list not showing in Stores > Settings > All Stores
i'm trying to setup a new magento site in 2.3.5p1 with multiple store views. after creating all the store views, i added all products. Now when i visit the stores list in Stores > Settings > All ...
0
votes
1
answer
29
views
Store switching module still pulls theme and payment methods from main site
I'm currently trying to create a module for Magento 2 (2.3.4) which switches the store based on customer group using observers.
The code seems to work (uses the correct logo, header for the switched ...
0
votes
1
answer
846
views
Magento 2.3: Duplicate entire store view to a new one language
I want to add a new language in my store. It's a language that is really similar to another one already inserted: as example en_GB and en_US.
I'm looking to duplicate it because a big percentage of ...
1
vote
1
answer
481
views
Add to Cart Success Message Translation issue?
<?= $block->escapeHtml(__(
'You added product %1 to the <a href="%2">shopping cart</a>.',
$block->getData('product_name'),
$block->getData('...
0
votes
1
answer
439
views
Magento 2 : Product attributes color and size Translate issue
It is a Configurable product and the default store view is Swedish store and this text Color and size need to be translated in Swedish but These words are not translated in Swedish ??
I have tried ...
0
votes
1
answer
119
views
Add to cart success message
<?= $block->escapeHtml(__(
'You added product %1 to the <a href="%2">comparison list</a>.',
$block->getData('product_name'),
$block->getData('compare_list_url')),
...
0
votes
2
answers
767
views
Magento 2.3 insert a product into a specific store
i have Magento 2.3 and i create three different store view with different ID.
After i created a product i can change the price, the name ecc... by the select on the upper-left.
But when i create a ...
1
vote
1
answer
179
views
Declaration warning when extending _afterLoad() in AbstractModel
I've created a backend module to which I've added the possibility to set storeview specific data today. That worked and showed up fine. So I'm trying to load and save my storeview data now but it just ...
1
vote
0
answers
21
views
Store wih diferent languages have broken images after programmatically product import
I have a script running in cron to import products.
This import creates simple products and then creates a configurable one with all these simple ones as children of that.
During this process, I ...
3
votes
2
answers
2k
views
"The store that was requested wasn't found. Verify the store and try again."
Everytime I'm switching from the English store view to the Italian's one and viceversa, it takes me to the equivalent homepage (no matters where I am) and it throws this error:
Here's my setup:
...
0
votes
0
answers
25
views
Products disappearing from Category pages - Tracking down the cause!
I have an unusual problem with a range of items on my Magento store that after a few days, disappear from the category pages. If I go into the back end, disable those specific items and then re-enable ...
0
votes
2
answers
614
views
how to load different css files based on "store view"
I have two "store view"s and I want to only add a css file to one of the views. I have noticed that you must load css files in default_head_blocks.xml. here is what is want:
<css src="css/...
1
vote
1
answer
715
views
change url for store view
I have Magento 2.3.3 I created store views French, English, Turkish. I want to change url,.
for example http://localhost:8080/magento/fr for French store
http://localhost:8080/magento/...
1
vote
1
answer
429
views
Magento 2 change language for all in Front-end
I have Magento 2.3.3 I created 3 store views French, English, and Turkish
I need to translate product descriptions and all Categories is changed the store view. This on the french store.
On the ...
0
votes
1
answer
128
views
Error Being Caused by Observer Extension in Magento 2
I am currently using an instance of Magento 2.3.2 I have now implemented the following code in the app > code folders:
registration.php file inside GroupSite/SiteSwitch/
<?php
\Magento\...
0
votes
0
answers
34
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
2
answers
3k
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 ...
0
votes
2
answers
603
views
"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" ...
0
votes
1
answer
130
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 ...
1
vote
2
answers
1k
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
1
answer
9k
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
2
answers
257
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
1
answer
349
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:...
1
vote
2
answers
406
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
3
answers
2k
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 ...
1
vote
1
answer
716
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?
8
votes
2
answers
11k
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
0
answers
136
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
1
answer
90
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
0
answers
219
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;
...
1
vote
1
answer
690
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
1
answer
1k
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 ...
4
votes
2
answers
2k
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 ...
2
votes
1
answer
349
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
1
answer
1k
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
1
answer
3k
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
0
answers
62
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
1
answer
923
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
1
answer
3k
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
2
answers
854
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
0
answers
24
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 ...
1
vote
2
answers
103
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 .. ...