LEADERSOFT.ru Разработка на заказ программ и сайтов
ЕСЛИ БАЗА ВАМ НУЖНА В ЛИДЕРСОФТ ЗАЙДИ СПЕРВА!

СТАТЬЯ ПО РАБОТЕ

Анализ удаленной работы

В данной статье дается анализ удаленной работы за некоторый период времени с freelance сайтов. Рассказывается о ценах, что делают, зачем это надо и т.п.

Перейти к чтению ...
Hello, Our website is running Magento 2.2.1. There are Language Switcher and Currency Switcher on the website (You can see from the attached image). What I would like to achieve is to 1. Change Language Switcher to Country(Website) Switcher

 Проект ID: Найти          

  Источник: upwork.com  > Magento2 Change Language Switcher to Country(Website) Switcher
  Бюджет: $100
  Опубликован: 22.11.2017 19:12:45
  Работа: Magento
  Описание:

Hello,

Our website is running Magento 2.2.1.
There are Language Switcher and Currency Switcher on the website (You can see from the attached image).

What I would like to achieve is to
1. Change Language Switcher to Country(Website) Switcher
So when people select a country, they will be redirected to a default store view under that country.
For example, country "Canada" has 2 store views "English" and "French".
When an user select Canada, they will be redirected from
www.example.com
to
www.example.com/canada_english_storeview

2. Currency Switcher to Language Switcher
This is just moving the current Language Switcher in the place of Currency Switcher.


For #1, As far as I know, it involves
Magento_Store/templates/switch/languages.phtml
and
Magento_Store/Block/Switcher.php
and also
public function getWebsites() {
    $this->_storeManager->getWebsites();
}

I believe this doesn't involve any change to the .htaccess files when "Add Store Code to Urls" is enabled.

Changes have to be put under the child theme.


Thank you!


Mike