Skip to main content

Questions tagged [store-code]

0 votes
1 answer
45 views

I wanna map urls based on store code instead of store views which is default functionality but cann't do that I have tried many solutions but wont work.I also check it admin configurations but wont ...
aich.khalid's user avatar
0 votes
1 answer
59 views

I'm trying to use an extension to manage our hreflang tags, but when it generates the tags, it adds the default store code to the URL. As the default store code was removed from the URL, it creates an ...
WillMich's user avatar
3 votes
2 answers
1k views

We have a Magento 2.4 project with multiple websites with multiple stores & we need to share some "store codes" in url terms for store views. All store views should load under same ...
Raul Sanchez's user avatar
  • 2,664
2 votes
1 answer
1k views

In Magento 2 I try to add specific base url for store view. This is my configuration : My website 1 contains two store view : Store view 1 : my_store_view_1 Store view 2 : my_store_view_2 Base urls ...
Fbr's user avatar
  • 187
0 votes
1 answer
464 views

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() ...
KaMZaTa's user avatar
  • 255
1 vote
2 answers
2k views

I have a custom REST API url: <route url="/V1/vendor/module/id/:Id" method="GET"> <service class="Vendor\Module\Api\ModuleRepositoryInterface" method="get"/> <resources&...
Juliano Vargas's user avatar
1 vote
1 answer
855 views

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?
Max's user avatar
  • 176
0 votes
2 answers
409 views

This is a Magento 2.3.2 CE project Let's assume url of default storeview is https://www.domain.com/store/es Url of second storeview is https://www.domain.pt/pt Language switcher gives error, ...
Raul Sanchez's user avatar
  • 2,664
0 votes
1 answer
1k views

Following documentation in admin panel I've added second website. On each website (default and new) I have exactly one unique store and for each store I have exactly one unique view. Like below ...
Michal's user avatar
  • 3
1 vote
1 answer
877 views

The site is been indexed on Google with Store Code for each store view (it/en/gb/au) now the store codes are been removed from url, so all the links end up in a 404 error. How can I set an automatic ...
albertovalerio's user avatar
3 votes
1 answer
2k views

Using the StoreManagerInterface I am getting the current store via $store = $this->storeManager->getStore(). I then want to get the code of the store. However, when using $store->getCode() ...
fritzmg's user avatar
  • 757
0 votes
3 answers
7k views

Not sure if this is a bug in this project, or a Magento2 bug itself The question is site is configured to use store code in urls, and that's working fine... but urls without any store code are loading ...
Raul Sanchez's user avatar
  • 2,664
0 votes
1 answer
766 views

I am using magento 2.2.2 My store was working fine till I added store code to urls so I am no longer able to access my website using my website url mystore.com I have to add store code to access ...
SoCix's user avatar
  • 512
7 votes
5 answers
36k views

How to get Store ID by store code in Magento 2 Thanks
shivashankar m's user avatar
0 votes
1 answer
1k views

In admin panel under Url options, I want to turn on Store codes on Url, since I want to visit my country-specific pages. I'm running locally (using WAMP) so my IP is 127.0.0.1:8888. I did set my host ...
Cake's user avatar
  • 366

15 30 50 per page