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.

This topic contains 12 replies, has 2 voices.

Last updated by Dražen 1 year, 4 months ago.

Assisted by: Dražen.

Author Posts
September 18, 2023 at 4:15 pm #14414103

samuelB-49

Tell us what you are trying to do?

On my home page, I want to display a list of products in tabs (product tab)
Each tag contains a products filtered on a category
All tabs are configured the same way
All products are translated

=> when I switch to my translated language (fr), only the first tab is translated and link to the product in french, all other tabls are in english and link to english product version

Is there any documentation that you are following?
woodmart and wpml in general, but I didn't found anything on this use case ?

Is there a similar example that we can see?
see video capture here : hidden link

What is the link to your site?
hidden link (it's the staging version with wpstaging where I installed wpml)

September 19, 2023 at 6:01 am #14416043

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

please make sure tags and products are translated and published in 2nd language.

Try to Enable a Language Cookie to Support AJAX Filtering:

- https://wpml.org/documentation/getting-started-guide/language-setup/enabling-language-cookie-to-support-ajax-filtering/

Let me know how it goes.

Regards,
Drazen

September 19, 2023 at 8:11 am #14416989

samuelB-49

hello, thanks for your help

All categories are translated, I don't have any tags

All products are translated

The cookie for ajax filtering is enabled (it was already)

I still have the issue

Could it be related to my wp-staging version ?

September 19, 2023 at 8:48 am #14417399

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

great, thanks for coming back.

No, it should work fine. The only thing I can think of is if this widget is coming from some 3rd party addon plugin, and not Woodmart, then it could be that is not syncing the correct translated category on 2nd language.

You can try to edit the 2nd language page manually, and check if the correct translated category is selected there, and if not, select it and save.

Let me know how it goes.

Regards,
Drazen

September 19, 2023 at 10:04 am #14418515

samuelB-49

Thanks,

I recorded a video, the categories are translated in the filters.

I don't know if the widget is from woodmart, wpbakery or elementor

here is the video
hidden link

September 19, 2023 at 11:02 am #14418897

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for getting back and sharing a video, it was helpful.

Let me have a look to see what is happening.

Please make a full backup of your site (files and database).

I will share with you any changes or steps done in this process. Please let me know if you do not agree with the above or if I do not have your permission for any.

I would need to access both your site's wp-admin and FTP account, if possible.

I have enabled the private username and password fields in your next reply.

I suggest you create a new user, set it as an administrator and then add those credentials in the private fields mentioned.

You can safely add your information into these fields.

Regards,
Drazen

September 19, 2023 at 12:49 pm #14419623

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

I checked and saw the issue, but not much I can debug safely there.

To speed things up please try the following:

1) Switch to the Woodmart parent theme and disable all other plugins, leaving active only WPML plugins, WooCommerce, Woodmart core, and WPBakery plugin.

Check if the issue still happens.

2) If the issue still happens in Step 1, please install the mentioned theme on the next test site and try to reproduce the issue with 1 example page with the product tabs widget.

Login link: hidden link

This will help us speed things up and escalate an issue if still happens on the test site, and is a bug.

Let me know how it goes.

Thanks,
Drazen

September 19, 2023 at 4:52 pm #14422683

samuelB-49

thanks I'll try that,

In the meantime there is maybe a clue ?

I saw that I have 2 cookies with 2 different path

and when the admin-ajax.php is called, it's the "en" that is passed

2023-09-19 18_50_55-.png
wpml_2cookies Untitled.png
September 20, 2023 at 5:53 am #14426283

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

please for now follow my suggestion from the last reply, then depending on the results we can go to the next steps and try to find a solution.

If you need help with the test site let me know.

Thanks,
Drazen

September 22, 2023 at 12:28 pm #14447027

samuelB-49

hello,

I reproduced here : hidden link

For now I replaced my ajax product tabs by simple products elements (so I used another component)

September 22, 2023 at 1:22 pm #14447199

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for getting back and taking the time to reproduce.

I checked but it seems it works fine on the test site. The product was named TEST EN in French also, so might cause confusion for you.

Please check and let me know if I am missing something, as it seems it works fine there.

Regards,
Drazen

Screenshot_5.jpg
September 23, 2023 at 7:44 pm #14451287

samuelB-49

Thanks, yes, it's possible that I made a confusion.

On my website, I noticed that if I use the component "products (grid or carousel)" with layout option "grid" and allow pagination, the first page is in french, but the other are not translated (what is loaded in ajax)

but, if I choose the "carousel" layout, I don't have this issue > so I replaced everything with the carousel layout

September 25, 2023 at 8:10 am #14455395

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for getting back.

Glad to hear it works fine for you.

I am still not sure if it is a bug from Woodmart, so if you have time to reproduce it on Sandbox that would be helpful for other clients or please report it directly to theme support so that they can fix it.

Regards,
Drazen