WPML

You need WPML and WPML Multilingual & Multicurrency for WooCommerce, with your store in at least two languages. To translate the store itself, see How to Translate WooCommerce.

What Customers Get From the Language Switcher

The switcher takes the customer to the same page in the language they choose. They do not start again from the home page.

  • Shop, category and product pages open in the chosen language, at their translated addresses.
  • The cart stays full. The same products and quantities show with their translated names and the same total.
  • Checkout and My account open in the chosen language, with the field labels translated.
  • A currency the customer chose stays chosen when they change the language.

Example: a customer with a jersey and a tour in the cart switches from English to French on the cart page, and the cart opens with both products, under their translated names, with the same total.

Add a Language Switcher to the Store's Menu

The menu is where most customers look for languages, on every page of the store.

  1. Go to WPMLSettingsLanguage Switchers.
  2. Under Menu language switcher, click Add a new language switcher to a menu.
  3. Choose your store's menu in Menu. No menu is selected for you.
  4. Click Save.

With the default options, the switcher is the last item of the menu. It shows the current language and opens the other languages as a dropdown, by name and without flags. On a phone, the languages open under the current language at the end of the menu.

The same dialog lets you place the switcher first, list the languages side by side and show flags.

Other Places for the Language Switcher: Footer, Widget, Block

All placements are set on the same screen, WPMLSettingsLanguage Switchers. The menu, footer and widget switchers show on every page of the store, cart and checkout included.

  • Footer language switcher: a row of languages with flags at the bottom of every page.
  • Widget language switcher: a dropdown in any widget area of your theme, for example next to the store's footer widgets.
  • Blocks: in the block editor, add the Language Switcher block to a page or template, or the Navigation Language Switcher block inside a Navigation block.

For the options of each placement, see Add a Language Switcher to Your WordPress Site. To change how switchers look, see Customize the WPML Language Switcher.

What the Switcher Shows for Products Without a Translation

By default, the switcher leaves out a language when the product on screen has no translation in it. The option is How to handle languages without translation on WPMLSettingsLanguage Switchers:

  • Skip language (default): only languages that have this product appear. A product with no translation at all shows no switcher.
  • Link to home of language for missing translations: every language always appears. For a missing translation, it leads to the home page in that language.

The easier way is to have every product in every language. When WPML translates the store automatically with PTC (Private Translation Cloud) (opens in a new tab), new and edited products are translated without you sending them, and the switcher offers every language on every product. See translating your store automatically and automatic translation.

A shop page can carry the customer's choices in its address: the sorting, a chosen variation or a product search. To carry them into the next language, list their names once.

  1. Go to WPMLSettingsLanguage Switchers.
  2. Open Preserve URL arguments.
  3. Enter the argument names, separated by commas, and save.
To keepEnter
The shop's sorting (for example, by price)orderby
A chosen variationattribute_pa_ followed by the attribute's name as it shows in the product address, for example attribute_pa_size
A product searchs, post_type

Example: with orderby listed, a customer who sorted the shop by price and switches to French sees the French shop sorted by price.

A regular site search keeps its words without this setting. More in Preserve URL Arguments When Switching Languages.

Show a Currency Switcher Next to the Language Switcher

A store that sells in more than one currency can show a currency switcher too. It is set on WPMLSettingsMulticurrency:

  • Widget Currency Switcher places it in a widget area. Use the area that holds the widget language switcher to show the two together.
  • Product page Currency Switcher shows it on product pages, under the add to cart button.

There is no currency switcher block. To set currencies, rates and a currency for each language, see WooCommerce Multi-Currency: Prices, Switcher, Gateways.

Written byAmir