Then the add to card link will redirect to the shop overview without any store view paramenter in the url. Get language switcher in header.phtml file in MAgento 2 Ask Question Asked 4 years, 5 months ago Modified 1 year, 10 months ago Viewed 2k times 0 I am trying to get language switcher in header.phtml file. I think the first and second problem are nearly the same. If the shop was in french before and I click this link, i get the success message in the main language, but the rest of the shop is french again. Customize rules for each country and URL. A add to card link would look like: /shop/checkout/cart/add/uenc/aHR0cDov元d3dy5teS13aW5lLmNoLnJ1dGlzaGF1c2VyLm5pbmUuY2gv/product/2169/?_SID=U&_store=myshop_view Automatically switch language and currency according to store view. Go to Stores > Configuration > Magefan Extensions > Auto Language Switcher. The second problem comes with externall add to card links. The following steps to configure Magento 2 Auto Language Switcher: 1. ![]() Plugins will help enhance the functions and create a multi-language store.Consider using these recommended Magento 2 extensions: Language Switcher Automatically switches the store language based on the user's location. The vendors reputation and Search Engine Ranking. Now first problem comes when I am in french store and switch to mainlanguage with /shop/?_store=myshop_view, now I see the shop in the mainlanguage, but when I call /shop/ without any storeview paramenters it switches back to french. Recommended Magento 2 Extensions for Multi-Language Websites. Here is a list of Best Store Switcher for Magento 2: Best Store Switcher for Magento Store These 8 Store Switcher modules are ranked based on following criteria: Rating review on Magento Connect, Magento Marketplace and vendors website. /shop/?_store=myshop_view_fr for french./shop/?_store=myshop_view for mainlanguage.The language switcher works with set a different store view in the url.
0 Comments
Leave a Reply. |