 vitaliN-2
|
Hello
I have issue with "Product category base" translation. Issue is that I have translated "Product category base" in store URL section but it does not get any affect at my translated pages (EE,LV and LT). For example at Estonian translation the link is still like this:
product-category/kodumasinad/kodumasinad-et/robot-tolmuimejad/
but should be like this:
toote-kategooria/kodumasinad/kodumasinad-et/robot-tolmuimejad/
Same is for LT and LT pages But other trasnlation names.
|
 Marsel Nikolli
|
Hi,
Thank you for contacting WPML Support, I will gladly help you.
Can you please follow the steps below and check if the issue persists:
---
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.
If the above does not help, make sure slug IS NOT already in use for the product category base translation, causing a conflict. If it is, you should rename the category base slug to something else.
Let me know how it goes,
Marsel
|
 vitaliN-2
|
Hello, please check my picture. Should i delete it?
|
 Marsel Nikolli
|
Hi,
Can you please tell me how you are translating the product-category base (from the WPML String translation)?
* If you followed my previous instructions and it is the case that needs to be deleted as mentioned in #2, you can delete it.
|
 vitaliN-2
|
Hi
I have translated product-category base from: WooCommerce -> WooCommerce Multilingual -> Store URLs.
When I check from string translation it finds 2 product-category strings. Which one I should delete?
Attached picture.
|
 Marsel Nikolli
|
Hi,
Please proceed by removing the string that refers to the domain "WordPress" (the one at the bottom of the image you shared).
Let me know how it goes,
Marsel
|
 vitaliN-2
|
Result:
after deleting it, he link product-category/kodumasinad/ started to work but the traslation of product-category was missing. Then i have added traslation pic. attached and unfortunately it does not show translation at translated sites. Also the link product-category/kodumasinad/ is not working anymore. Shows 404.
|
 Marsel Nikolli
|
I would need temporary access to your site's WP-admin to investigate this issue. Please create an administrator user using any email address you prefer.
Please fully back up your site (files and database) and confirm it in your next reply.
Your next reply is set to private for you to provide the username and password details.
Thanks,
Marsel
|
 Marsel Nikolli
|
Hi,
Thank you for the access, I was able to check and it seems that everything works fine.
There was a typo error in the translation of "toote-kategooria", it was "tootekategooria", which I corrected.
Please clear the browser's cache and the website's cache and check if the issue persists.
|
 vitaliN-2
|
Hi, nothing changed to me after cache clearance. Please go to estonian site and click at category as showed at picture. it will redirect you to product-category/kodumasinad/ and shows 404, but it should redirect to toote-kategooria/kodumasinad/. For some reason it is not happening. Same for LT and LV.
|
 Marsel Nikolli
|
Thanks for the screenshot.
The links you are trying to access from that menu don't exist because the product category slug is changed for the other languages, it is not "product-category".
You need to update the links for that menu, that will fix the issue. (I checked the menus on your website but there were so many and I didn't know which one was it).
Regards,
Marsel
|
 vitaliN-2
|
Thank you for your feedback.
I have loaded categories by using shortcode. However my shortcode will not change the category slug. Is there any available product category shortcode / function or not?
|
 Marsel Nikolli
|
Hi,
Could you help me with a video or steps on how you are setting that specific menu on the website and how you are translating it?
* I've noticed that now in all the languages it uses the "toote-kategooria", it did change somehow from how it was before.
Thanks,
Marsel
|
 vitaliN-2
|
Hello
In our demo site we are using a plugin to load all categories ( which have products ) to load in the frontend. Please refer to the attached reference image.
Is there any WPML shortcode or function to load categories and sub categories in the frontend instead of using menus for each language ?
Also I checked wpml documentation and I didn't get any shortcodes to pull the categories.
Image attached.
|
 Marsel Nikolli
|
Hi,
Thank you for the information shared.
Unfortunately, WPML doesn't have a shortcode/function to load categories and subcategories in the front end. That needs to be done through the standard WP menu functions or from any page builder options/theme options.
* The plugin "Automatically Hierarchic Categories in Menu" which you are using for that menu seems to not be part of the WPML compatibility list.
If the plugin has an option that allows you to specify the ID of the categories, I think you can achieve what you want by using the plugin shortcode with the respective category IDs for each language.
|