Questions tagged [store-view]
Denotes questions regarding store views (scope, creation, management).
554
questions
1
vote
3answers
1k 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
0answers
33 views
Magento 2: How to redirect to current store url with parameters in url from `controller_action_postdispatch` observer [Google search index issue]
I have installed the GeoIP Store Switcher module. When I enter my site's internal URL for example- xyz.com/women/tops
It redirects me to the home page xyz.com and also shows the error in
Google Search ...
0
votes
2answers
20 views
Create Store Programmatically on frontend
I want to create stores/store_views programmatically from the frontend. Is it possible to do that?
I have not found any useful tutorial explaining to create stores/store views.
I am using Magento 2.4....
1
vote
2answers
2k 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 ...
6
votes
2answers
3k 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 ...
3
votes
1answer
536 views
How Magento manages store-wise cache
I am currently working on an architecture where I'd like to maintain separate caches (block cache, collection cache, FPC) for each zipcode. I am making the user select a zipcode at the beginning of ...
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
0answers
119 views
Magento 2.3.x: How can we display separate tax on the selecting particular stores from the dropdown?
I need, Multiple stores have a common country (i.e. united states and states should be all) then different tax rules for all stores(*).
I create two different stores US and US1 for the common country ...
49
votes
4answers
36k views
Difference between website, stores and store views
I have been researching about multi website/store setups and am a little confused.
I completely understand how stores and store views work but my confusion is on the differnece between websites and ...
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 ...
0
votes
1answer
21 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
3answers
876 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 ...
2
votes
0answers
17 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
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',
...
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
851 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 ...
1
vote
1answer
1k 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 ...
5
votes
1answer
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)?
0
votes
0answers
12 views
Magento 2 how to export stores, websites and store views?
I have a Magento installation with many websites, stores and store views, each website with it's own configuration for Shipping Methods, Payment methods, categories, etc..
I need to constantly move ...
0
votes
0answers
9 views
Magento2: Validation failed error on deleting store
I just deleted 3 storeviews for a customer. When attempting the fourth it gives a general 'validation failed' in the (red) magento notification system.
I put a tail on the system.log & the ...
1
vote
0answers
11 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 ...
0
votes
0answers
64 views
Magento 2.3.x: How can set Different Tax rule for multiple store to common country
I create Two different stores US and US1
and set tax rule US-tax rule and US1-tax rule
next In Tax Zones and Rates set country US and Tax rate 5% and 10%.
from admin -stores>configuration>...
2
votes
1answer
1k 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) ...
1
vote
1answer
980 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 ...
4
votes
2answers
1k 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
1answer
22 views
How can I get the store code inside a block in the product page using the dependency injection?
I have to check which is the current store view. In order to do that I was using the Object Manager to get the store code like this:
$storeCode = \Magento\Framework\App\ObjectManager::getInstance()
...
0
votes
0answers
16 views
Change language switcher URLs in Magento 2.3
I have multiple languages (store views), each in a different domain (.com, .es, .de, .fr, etc...). When I change the language in any page, the url displayed is like bellow (from .es to .de for example)...
8
votes
3answers
2k 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....
2
votes
1answer
5k views
Magento2: Load product specifying store
I have a multi store view with different languages to describe the product. Each store has a different locale defined.
I have this code
$shops = $this->_storeManager->getStores();
$...
0
votes
1answer
17 views
Magento 2 how to create a store, store view and root category programatically?
I was doing a research on how to create this 3 elements, I already have 1 website, but I will have a form that will fill the information of store and store view.
I found this question
https://...
0
votes
1answer
269 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
53 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) ...
1
vote
1answer
134 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
0answers
17 views
Magento reset settings
Is there any options to reset all configuration setting not the product or attributes. I need to reset only settings because I'm facing some issue.
0
votes
0answers
13 views
Magento 2 why I can see products from other storeviews?
I have a website with many stores and storeviews. The thing is that when I search a product from another storeview or store in a different store, I'm able to see those products.
Also in the section of ...
0
votes
1answer
4k 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
1answer
34 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
1answer
28 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
1answer
360 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 > ...
2
votes
2answers
4k views
Different prices for different store views
I've been looking into this alot to try figure out what is going on.
http://docs.magento.com/m2/ce/user_guide/catalog/catalog-price-scope.html
This page on Magento docs says
Different factors can ...
1
vote
2answers
4k views
How to setup different prices for same product for magento 2 store view?
We are currently running one website, one store, two store views (languages) for example one default store and second create new store Magento 2 install.
But I want to save prices multiple store views ...
0
votes
0answers
4 views
Create store programmaticaly after deleting it the wrong way
I've created a store using this code.
/**
* @param $groupId
* @param $websiteId
* @param $storeName
* @param $storeCode
* @return Group
* @throws Exception
*/
private function ...
0
votes
1answer
45 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
2answers
2k views
Disable products per store
My store looks like the following;
1 Website, with 2 Stores, with each 1 Store view.
I use these 2 Stores, because we sell products in 2 different countries.
For these stores I want to share my ...
0
votes
1answer
55 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
0answers
43 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 = '...
0
votes
0answers
28 views
Cart Price Rule based on category does not work via Rest API
I have created a Cart Price rule (not catalog) and applied a discount to it. I can apply the discount fine using the store's UI. I can also apply the discount via Rest API. Then if I add an action to ...
1
vote
0answers
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
0
votes
0answers
6 views
Magento2 Show Store Purchase Point as 1 line instead of old spaced multiline
So we've been using Magento since 1.3 and now working with M2. Why is the Store Purchase Point still a multiline spaced with rubble?
I would expect
Spacing being tackled by css
or some form of ...