Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where the attribute filters on the shop page are not working correctly in the English version of the site. When applying an attribute filter, the results are displayed in the default language, and the language selection in the URL is lost during the filter action.

Solution:
We recommend trying to switch the language URL format to the directory method. This can be done by going to WPML > Languages and selecting the 'Different languages in directories' option. This change might help the widget handle the language parameter correctly.

If this solution does not resolve the issue, please open a new support ticket with us.

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 3 replies, has 2 voices.

Last updated by Laura 1 year, 4 months ago.

Assisted by: Laura.

Author Posts
October 31, 2023 at 1:48 pm #14700565

jessicaN-6

Tell us what you are trying to do?
I translated the website from the default language (German) to English (second language). Everything works fine - except for the attribute filters on the shop page.
As soon as I am using the englisch version of the shop page and apply an attribute filter for example in "structures" I select "building" and I click on the button "Filter". Then I get the results in my default language German (also the name of the selected filter ist shown in German).

What is the link to your site?
hidden link

The filter function I use in the sidebar widget is called "Be Shop Attributes" from Betheme.

Site note: I noticed, that the language selection in the URL get´s lost during the filter action. When I manually ad ?lang=en before the filter suffix, I get the results in the right language...

October 31, 2023 at 2:06 pm #14700759

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

Hi,

thanks for contacting us.

The issue is likely with the parameter - probably the widget can't handle it.

Please try to switch to directory and see if it works. If it does, could it be a solution for you?

October 31, 2023 at 2:28 pm #14700897

jessicaN-6

Wow, that was a lot easier than I tought... It worked - thank you very much!

Can you help me with an other question?

My website was translated automatically and afterwards we noticed a few technical terms, which are translated wrong. Now I added those words with the right translation to the glossary, but they aren´t corrected automatic by wpml. Is there a way to automatically adapt the translation for these words on the whole page?

October 31, 2023 at 4:00 pm #14702147

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

Yes, adding terms to the Glossary doesn't mean they are automatically applied. You need to resend the pages to translation via WPML > Translation Management. It won't cost you any extra credits, since the pages are already translated.

See https://wpml.org/documentation/translating-your-contents/#sending-content-for-automatic-translation