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:
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.
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.
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.
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.
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.
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).
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?
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.
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.
The topic ‘[Closed] Product category base issue’ is closed to new replies.