Home›Support›English Support›[Resolved] Woocommerce products slug not changing when in different languages
[Resolved] Woocommerce products slug not changing when in different languages
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is trying to change the slug for products in the French version on their WooCommerce site but the changes are not taking effect. The products in the French version appear to be duplicates of the English version, and there are concerns about SEO optimization and duplicate content.
Solution: 1. Ensure the slug is updated in WooCommerce > WooCommerce Multilingual > Store URLs. After updating, resave the permalinks. 2. If the issue persists, go to WPML > String Translation, search for the original slug, and remove it. Then, try updating the slugs again from WPML > Settings > Post Type Translation > Products. 3. To display only translated products and avoid duplicates, go to WPML > Settings > Post Type Translation, find Products, and set the translation preference to "Translatable - only show translated items". 4. The slug 'acheter' was already in use for product category base translation, causing a conflict. We resolved this by renaming the category base slug to
acheter-1
, which allowed the French product URLs to work correctly. A different slug should be used for the French category base translation.
Please make sure the slug is also updated in WooCommerce > WooCommerce Multilingual > Store URLs. Sometimes it requires the slugs to be updated here directly. Once done try resaving the permalinks and check if that helps.
If you still encounter the same issue,
- Goto WPML > String translation search for the original slug and remove it from the list, Once done try updating the slugs again from WPML>Settings>Post Type translation>Products.
I've been through the whole process but I am still having the same issue.
The problem might be because I don't have the products created in the french version. Somehow all the products I can see in the French version are simply duplicated from the English version.
When I go under woocommerce products > french, there are no products displayed. But they are still visible on the website. (cf screenshots).
What I try to achieve is:
Having all my products translated in French
Having all slugs SEO optimized
Having Yoast SEO titles optimized for SEO
At the moment all the products are duplicated to a different URL which creates a lot of duplicate content on the website and it is impacting the way the website ranks on Google.
Would you be able to guide me through this? I can provide you with credentials to access the website.
Note that I have a dev website where I can create the translation and verify that everything is working fine. Is there a way to import all the translated products afterward?
I see the products are set to Display as translated, which means, the products even if they are not translated will appear in the front by displaying the contents from the default language, If you wish to display only the translated products please goto WPML > Settings > Post type translation , Search for Products, and Set the translation preference as "Translateable - Only show translated contents".
With that setting once you add the produce translation that will display the correct slugs.
Regarding imports, it is not possible to import only the translated products.
I will need to use the automatic translation for that. I see that I currently have 20k credits, however, when I go into WPML pricing it says that I should have 90k credits for Multilingual CMS. Are you able to adjust the amount of credit for my account?
When I go under WPML>Translation Man.>Automatic Trans. a problem occurs, according to the Installer log the "Site key not matching", so I went ahead and generate a new key then update it on the website but the feature is still not working. Can you please let me know how to solve this issue? Or I should just wait for 24hours.
Note that I managed to get the following product automatically translated using the "translation" tool:
hidden link (EN version) hidden link (FR version)
Even though the product is created and visible from the product Archive pages in the french version it does not display the products page itself when I click on it. So I updated the Permalinks for the website but it didn't change anything. Can you please let me know how to solve that?
thanks
New threads created by Raja Mohammed and linked to this one are listed below:
The 90k credits are applicable only to those purchases made with the new WPML pricing of $99. I see that you had purchased on Sep 21 2021 with the old pricing of $79 which is not eligible for the credits.
Please make sure the translated product is published. If you are still stuck, consider sharing temporary access to the site, let me take a closer look into the issue. I am enabling private reply to securely share the information.
The slug acheter is already used for product category base translation and hence using the same slug for product base conflicts with the category base. I have adjusted the category base by renaming the slug to acheter-1, after which I am able to access the products in french translation hidden link
Please use differ slug for french category base translation
I am afraid it is not possible at this point in time to move your subscription to the new pricing model since you have already used 6 months of the subscription, I will check with the concerned team for any possible way around.
Please note the old pricing has the benefit of renewal at a discounted price of $59.
Thanks for everything. I started the translation for the products already.
However, I noticed that the shop page in french is not displaying any products. Can you please take a look and let me know why? hidden link
I checked this further it seems like the theme needs an update, Please update the woodmart theme to the latest version 6.4.0. once installed please clear the site cache and resave the shop page check if that helps.
It is now updated. Please remember that it is a dev website so you can go ahead and update the theme, plugins and everything you think can be important.