Questions tagged [store-view]
Denotes questions regarding store views (scope, creation, management).
187
questions with no upvoted or accepted answers
6
votes
0
answers
2k
views
Multi store with different domains, cookie store is causing problem
Please note that it's not another "how to setup multistore". I've read other questions and it seems that my problem is not described.
Following are not answering my question:
set default page to ...
6
votes
2
answers
2k
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 ...
6
votes
1
answer
2k
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)?
5
votes
0
answers
719
views
Web API: Product set use default status for store view
Our products are created and updated via the web API. When we update a product for all /rest/all/V1/products/123 and set status: 2 the product is disabled. But per store view it's still enabled ...
5
votes
0
answers
165
views
Multistore with subfolders - Including language code before store group in URL
I have a client who needs to include a language code before the store group in the URL. For example, the current setup is:
example.com/store1
example.com/store2
There are two subfolders in the root ...
5
votes
1
answer
2k
views
collect phrases and lang pack command line different from official doc - Magento 2.0.1
I use magento version 2.0.1, I am trying to add new language package, I have followed the instruction from official doc, that commands are not working
command syntax mentioned in official doc
magento ...
4
votes
0
answers
111
views
Custom store view per customer group
I need a solution for showing a different store view to different customer group.
For example:
Store view 1 must be displayed to the Customer Group 1 and Store view
2 must be displayed to the ...
3
votes
0
answers
201
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 = '...
3
votes
0
answers
256
views
Change order of store-views in multistore setup in ADMIN?
I have 3 store views ie ENGLISH, GERMAN and FRENCH language.
When I edit a setting or product details page, store views comes in orders/positions as displayed in below image:
I want to change their ...
3
votes
0
answers
2k
views
Magento 2 custom module multi scope store view
I am diving into the world of Magento 2 development.
I am writing a very simple custom module to show a slider in my store homepage. Each slide has its own title and an image to show and I made them ...
3
votes
2
answers
1k
views
Remove default store code from URL, only?
mage 2.1.7 "use Store code in URL" set to YES.
Have 3 stores, one for our default/original store at "/" with code "France" and one for our south Korea and north Korea ...
3
votes
1
answer
1k
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 ...
2
votes
1
answer
231
views
How I Fix error Magento 2 ‘Requested Store Is Not Found’?
I get this message "Requested store is not found" when I want to fix it.
The requested Store Is Not Found situation come up while migrating Magento 2 store to the latest version of Magento.
2
votes
0
answers
217
views
How to set different product attribute Default value for different store view?
I'm using magento 2.4, i just created a new product attribute like this:
$eavSetup->addAttribute(
\Magento\Catalog\Model\Product::ENTITY,
'brand_history',
[
...
2
votes
0
answers
221
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;
...
2
votes
0
answers
682
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 ...
2
votes
1
answer
616
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
2
answers
56
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
>...
2
votes
0
answers
123
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 ...
2
votes
0
answers
42
views
Language switcher duplicate parameters
I have two store view "en" for english and "ar" for arabic. When i click english store view icon, the url gets changed to
"https://my-magento-store.com/?__store=en"
and after that when i click ...
2
votes
0
answers
135
views
How to show only all store views on default store view
How to show all store views on default store view and on other store views only the current store view shows.
my code is
<?php
namespace PME\Hideprice\Model\Config\Source;
/**
* @api
* @since 100....
2
votes
0
answers
149
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
0
answers
359
views
Strange behavior with the redirects in Store views, Cms pages, Cookies
Config :
Front : I have Two store views 1:simple, 2:pro.
Admin : 1Website->1StoreGroup->2Storeviews: simple and pro
Cms Pages : I created different Cms pages, let's taking for example : 2 (A,B) ...
2
votes
0
answers
317
views
Redirect to customer's store view on login
We would like to redirect to the customer's store view on login, this seems like it should be default behaviour but we always get the default store view (ID: 1). Has anyone accomplished this?
We have ...
2
votes
0
answers
169
views
M2 - one frontend for one store in routes.xml
How can I have multiple route available for one module but different store ? I have one module that is going to be used for several stores (us / de / fr etc..)
I would like to have something like :
...
2
votes
0
answers
15
views
How come for a batch of newly imported products the URL structure is different than our normal configuration?
I imported some 34 simple products to our admin store, base site, via MageBees' Import/Export Products extension, as I often do. The problem is that their URLs are rendering as default/catalog/product/...
2
votes
0
answers
681
views
Magento 2 change default store view programmatically
i have console command that is creating store views and setting different languages for them. I want to have second console command that can change the default store view of the store. How can i do ...
2
votes
3
answers
4k
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')->...
2
votes
0
answers
362
views
Configure product custom options for different store views
i want to use the product Custom option in admin panel
but i have 2 stores view and i want it should show only in Store 1 and Not store 2
now is it set for global and not for website or store
for ...
2
votes
0
answers
127
views
Category URL rewrite generating with categoryname (hypen + increment) for n store views
My website has 10+ store views, I observed that while creating new categories the default URL rewrite functionality of Magento is adding hyphen + increment id based on the store views count.
like ...
2
votes
0
answers
3k
views
Magento 2: Admin Set to "Default Store View"
Magento 2: Import Script Store Id Related Issue
Would like to set Admin to "Default Store View" instead of "All Store Views".
How to do it? Is it good idea to achieve my requirement?
2
votes
1
answer
128
views
Store view with messed up CSS
I have set up a German view in addition to the current default view and the css is messed up when I change the language. It looks like it goes into mobile mode. The website is http://m.theseolounge.co....
2
votes
1
answer
992
views
Setting up multiple stores. Configuring one of them causes immediate redirect and can't login/view default website
I set up a website: http://example.com
I set up three store fronts that don't exist yet without a problem.
I created the fourth (last) store front http://example4.com without a problem. This domain ...
2
votes
0
answers
567
views
B2C/B2B website - Best practices and feedback
I am developing a Magento 1 store which caters to 80% B2C and 20% B2B and I'd like to hear your opinion and experiences about what is the best way to go regarding stores vs website vs customer group ...
2
votes
1
answer
1k
views
Hide shipping method for multiple store views
I am trying to create a solution for different shipping options in the cart based on store view and would appreciate any advice.
In Magento, I have 1 website (abc.com) with 2 store views (general) and ...
2
votes
0
answers
123
views
Best Practice Multi Country with Bilingual Magento 1.9
Wondering how to attain this setup for magento?
I have these countries
Oman
Qatar
UAE
Saudi Arabia
Jordan
But Language should only be English and Arabic for all. In this case, products should only ...
2
votes
1
answer
2k
views
How to Magento remove default store view code from url?
We need your help to solve this problem.
we have a 2 view store in English and Arabic
URLs now
www.example.com/en
www.example.com/ar
we need to remove code view in English version only as default ...
1
vote
1
answer
300
views
Custom field for product custom options - Magento 2.4
We used the following method, to create a custom field for the product custom option section: https://devhooks.in/blog/magento2-how-to-add-custom-field-in-custom-option
This works fine, but we can not ...
1
vote
1
answer
860
views
Remove trailing slashes from store URL's - Magento 2.4
We set the "Add Store Code to URLs" option to Yes, so now our store URL's looks like:
https://www.example.com/en/
https://www.example.com/de/
https://www.example.com/fr/
And by default ...
1
vote
2
answers
35
views
How to locate HTML files associated with the mobile view of a theme?
I installed a Magento theme on my server and wanted to make some changes to the menu within the theme.I am able to view the HTML codes related to the desktop view menu in the block section of the ...
1
vote
0
answers
172
views
Warning: array_replace_recursive(): recursion detected in /app/***/vendor/magento/module-config/App/Config/Type/System.php on line 207
I am on Magento 2.4 (Cloud) and my problem is that I cannot create new websites/stores/store views via the admin panel.
Warning: array_replace_recursive(): recursion detected in /app/***/vendor/...
1
vote
1
answer
28
views
Magento 2 : price issue
I am using Magento ver. 2.4.2 EE & React Frontend
In front-end when switching the region between US/UK/EU the price sign is still in $ (us dollar)
Can you please share which things i can check to ...
1
vote
0
answers
42
views
Stocks sources of other website's showing on applying store switcher in admin
Ours is the multi website store(UAE and Oman), and each website is assigned its own stock source under Stores > Stocks
But when I Go to product edit, and switch store to Oman website, user is able ...
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 ...
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 ...
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 ...
1
vote
1
answer
720
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?
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 ...
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 ...