Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Tirane (GMT+02:00)

This topic contains 14 replies, has 2 voices.

Last updated by Marsel Nikolli 1 year ago.

Assisted by: Marsel Nikolli.

Author Posts
April 22, 2024 at 10:05 am #15549487

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.

April 22, 2024 at 2:02 pm #15551082

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

April 22, 2024 at 2:36 pm #15551420

vitaliN-2

Hello, please check my picture. Should i delete it?

Capture122.PNG
April 22, 2024 at 4:32 pm #15552291

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.

April 23, 2024 at 8:10 am #15554171

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.

Capture13223.PNG
April 23, 2024 at 9:15 am #15554593

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

April 23, 2024 at 10:56 am #15555320

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.

Capturecat.PNG
April 23, 2024 at 11:04 am #15555432

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

April 23, 2024 at 1:40 pm #15556328

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.

April 23, 2024 at 3:06 pm #15557071

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.

Capture12345.PNG
April 23, 2024 at 3:20 pm #15557104

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

April 24, 2024 at 3:18 pm #15561505

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?

April 24, 2024 at 3:37 pm #15561563

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

May 1, 2024 at 6:22 am #15583130

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.

Capturewpml.PNG
May 2, 2024 at 7:10 am #15585699

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.

The topic ‘[Closed] Product category base issue’ is closed to new replies.