Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client wants to translate WooCommerce pages like the cart and checkout but not the products. The language switcher is not appearing on the translated store page.
Solution:
We recommend installing and activating the WooCommerce Multilingual plugin, even if you do not wish to translate products. During the setup, you will have the option to translate WooCommerce's default pages, which will enable the language switcher on these pages. If you prefer not to translate products, you can set the default products to appear in translations by following this guide: Displaying Untranslated Products in Secondary Languages.

If the issue persists after translating the pages and activating the plugin, try these troubleshooting steps:

  • Go to WPML > Support > Troubleshooting.
  • Click on the following buttons:
    • Disable cache for language switcher templates
    • Synchronize posts taxonomies (ensure 'Pages' is selected in the dropdown)
    • Clear the cache in WPML
    • Assign translation status to duplicated content
    • Set language information
    • Fix post type assignment for translations
  • Clear your site and browser caches and check again.

If the solution provided here is not relevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket at WPML Support Forum.

100% of people find this useful.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 2 months ago.

Assisted by: Prosenjit Barman.

Author Posts
April 1, 2024 at 5:24 am #15468069

malekH

I selected the Store page in WooCommerce > Settings > Products tab > Shop page.

April 1, 2024 at 8:43 am #15468471

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're having. While checking the WPML Debug Info, I found that the "WooCommerce Multilingual" plugin is not active on your site. In order to translate the WooCommerce Product and pages and make them work properly in WPML enabled environment, it is required to keep the "WooCommerce Multilingual" plugin active.

Please check this guide for more details: https://wpml.org/documentation/related-projects/woocommerce-multilingual/

After installing and activating the WooCommerce Multilingual plugin, you'll need to go through the setup. As part of this setup, you'll come across an option to translate WooCommerce's default pages, such as the shop, cart, checkout, and my-account pages. Completing these translations will enable the language switcher on these specific pages.

For the language switcher to display correctly on product pages, ensure that your products are translated into the desired languages while keeping WooCommerce Multilingual activated.

Once the WooCommerce Pages and Products are translated, the language switcher will correctly appear.

Let me know if the information above helps or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

April 1, 2024 at 11:54 pm #15470919

malekH

but i don't want to translate products, I only want to translate pages

For example: In cart, checkout...
The pages are translated and the switcher is showing

By the way when I enter the url /ar/shop
The store page appears with the translation but the switcher does not appear

April 2, 2024 at 7:41 am #15471190

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,

I understand your point. However, for WooCommerce to function correctly alongside WPML, it's essential to have the WooCommerce Multilingual plugin installed.

If you don't want to translate the product, you can configure the default products to appear in the translation at the time of configuring the WooCommerce Multilingual Plugin. Check this guide for more details: https://wpml.org/documentation/related-projects/woocommerce-multilingual/displaying-untranslated-products-in-secondary-languages/

Therefore, I recommend activating the WooCommerce Multilingual plugin, make sure that the WooCommerce pages are translated and check again.

If you're still having issues, you can try the following:

- Go to WPML > Support > troubleshooting
- Click on the following buttons:
-- Disable cache for language switcher templates
-- Synchronize posts taxonomies (Before clicking on this button, ensure that the 'Pages' option is selected in the Dropdown)
-- Clear the cache in WPML
-- Assign translation status to duplicated content
-- Set language information
-- Fix post type assignment for translations
- Once done, Clear the caches from your site and browser then check again.

Let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

April 3, 2024 at 5:44 am #15476018

malekH

It works great, thank you