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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

This topic contains 0 replies, has 0 voices.

Last updated by Bruno Kos 8 hours, 17 minutes ago.

Assisted by: Bruno Kos.

Author Posts
November 27, 2024 at 11:28 am #16448790

erwinV-21

Background of the issue:
I am trying to translate search results for products on my website. When I search for a product and translate the search results, it switches to another page in the shop. Here is a video demonstrating the issue: hidden link. The issue can be seen on this page: hidden link.

Symptoms:
The search results do not translate as expected. Instead of translating every product in the search result, it switches to another page.

Questions:
Why are the search results not translating as expected?
How can I ensure that the search results translate correctly without switching pages?

November 28, 2024 at 6:38 am #16452529

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Can you please try the following:

1. Go to **WPML > Languages > Preserve URL arguments** section in your WordPress admin panel.

2. Add the parameters `s, post_type` to the **Preserve URL arguments** field. This ensures that these parameters are retained during URL switches. For more details, refer to the https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/preserve-url-arguments-when-switching-languages/

3. If additional parameters appear in searches (e.g., `post_type` from WooCommerce), you can also add these parameters to the same field in the **Preserve URL arguments** section to ensure proper functionality.

Let me know if further assistance is required.

November 28, 2024 at 9:03 am #16453669

erwinV-21

Hi can someone give me help with this?

November 28, 2024 at 1:26 pm #16455319

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Did you see my previous message? Let me know what is not clear related to these parameters.

I applied it on hidden link and it works now.

add parameters here.jpg
November 29, 2024 at 9:15 am #16458271

erwinV-21

Hi sorry i did not read your response. It works for the english version, but when you change to another language it doesnt show any products

November 29, 2024 at 11:01 am #16458948

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

It shows products in another language only if there are the products with that name in these languages.

Try searching for some product for which the title is the same in several languages.

December 4, 2024 at 11:47 am #16476338

erwinV-21

Is there a way to let WPML not translated every product title? that would fix the issue i think

December 4, 2024 at 12:45 pm #16476649

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

It is not possible, but when translating it, you can copy-paste the title in the translation editor to keep it the same.