Skip to content Skip to sidebar

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 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

Tagged: 

This topic contains 14 replies, has 0 voices.

Last updated by Andreas W. 12 minutes ago.

Assisted by: Andreas W..

Author Posts
May 5, 2026 at 2:26 pm #18014385

pavlinaD

We are using the WooCommerce Product Filters widget/block on a multilingual site with WPML.

Problems:
1. Mixed-language slugs in URL (multi-select)
- Single category selected → correct translated slug
- Multiple categories selected → mixed slugs:/de/shop/?categories=german-slug,bulgarian-slug

2. Filter labels not translated initially
- Labels (e.g. “Преди раждане”) show in Bulgarian on first load
- Only after applying a filter (AJAX), they switch to German

3. Inconsistent AJAX behavior
- Initial state ≠ post-filter/reload state

4. What we checked:
- Categories fully translated (names + slugs) via WPML Taxonomy translations
- Taxonomy set to “Translatable – only show translated items”
- AJAX language cookie enabled
- Caches cleared, permalinks resaved
- WooCommerce lookup tables regenerated

5. Questions:
5.1. Is the WooCommerce Product Filters block fully WPML-compatible?
5.2. Does ?categories= play a role in the filtration in the different languages and if so, how can we translate it?
5.3. Why does multi-select produce mixed-language slugs while single-select works?

6. Expected:
- Consistent translated slugs: /de/shop/?categories=german-slug-1,german-slug-2
- Filter labels translated on initial load and after AJAX

You can reproduce the issue here: hidden link, these are the fields in question: hidden link. They should be in German, not Bulgarian. They are added from: WP admin -> Appearance -> Widgets -> WooCommerce sidebar.

You can access the website administration from: hidden link

Looking forward to hearing from you.

May 5, 2026 at 4:20 pm #18014740

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I'd be happy to take a closer look at this.

I'd like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.

You'll find the necessary fields below the comment section if you log in to leave the next reply. The information you provide will be private, meaning only you and I will be able to see and access it.

IMPORTANT
Please be sure to create a backup of the website and database before granting us access.

If you don't see the "wp-admin / FTP" fields, your login credentials for the post and website will be set to "PUBLIC." Do NOT publish the information unless you see the required wp-admin / FTP fields.

The private reply form looks like this:
hidden link

When replying again, click "I still need assistance".

Video:
hidden link

Please note that we are required to request this information individually on each ticket. We are not permitted to access any login information that was not specifically provided in the private reply form for this ticket.

Best regards
Andreas

May 7, 2026 at 6:16 am #18018951

pavlinaD

Hi Andreas, I'm not seeing the private field, only this: hidden link. I can't edit my previous message either to potentially include this information in a manner you need. What to do?

May 7, 2026 at 8:28 am #18019504

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Click on "I still need assistance". The private fields are now enabled again.

May 7, 2026 at 9:33 am #18019806

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

On this staging, I can currently see any filter on any of your shop pages, not even on the original shop page.

Please recreate the issue on the staging site.

May 7, 2026 at 11:48 am #18020216

pavlinaD

Hi, for some reason a lot of our Shop page settings were changed - including that the pages is created and edited via Elementor, which it was not originally. Is this something you were testing maybe?

Apart from that, we reverted the changes we noticed but still the filters weren't showing at all, even on our primary language. They are only showing if the WP_Debug is enabled. I'm assuming you're testing something? We haven't made any changes from our live website since we sent to you to debug.

EDIT after additional debugging on our end:
WooCommerce Product Filters category filter disappears when WP_DEBUG is false. It appears and works correctly, including translated labels and slugs, when WP_DEBUG is true with WP_DEBUG_DISPLAY false. SCRIPT_DEBUG true alone does not help. WooCommerce lookup tables/transients/recount terms did not help. Reinstalling/updating WPML + ACFML fixed previous fatal errors, and no new debug log errors appear.

May 7, 2026 at 11:55 am #18020225

pavlinaD

Adding this in after further digging:
WooCommerce Product Filters category filter disappears when WP_DEBUG is false. It appears and works correctly, including translated labels and slugs, when WP_DEBUG is true with WP_DEBUG_DISPLAY false. SCRIPT_DEBUG true alone does not help. WooCommerce lookup tables/transients/recount terms did not help. Reinstalling/updating WPML + ACFML fixed previous fatal errors, and no new debug log errors appear.

May 7, 2026 at 12:36 pm #18020322

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Yes, I was testing.

I had to go to Appearance > Widgets and save the block again to make it visible.

I do currently see translated filters, which seem to work. Only the title "Филтри" was not translated, but I adjusted this on WPML > String Translation.

Please verify and let me know if further assistance is needed.

May 7, 2026 at 12:44 pm #18020336

pavlinaD

Hi, yes, right now they are working, but for some reason, when define('WP_DEBUG', false); the filters disappear from both pages: hidden link. Could you please explain why that is and if possible to change it? We don't necessarily want the debug enabled at all times.

May 7, 2026 at 12:56 pm #18020386

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

No, I honestly have no idea, and I have never seen such a kind of issue before.

I would suppose that this would also be the case if WPML is disabled, which means that this would not be a WPML-related issue.

Please verify.

May 7, 2026 at 1:07 pm #18020398

pavlinaD

No, when I disable the WPML plugins and set define('WP_DEBUG', false);, the filters are still correct in our now only language version: hidden link. You can check for yourself now, I've left them inactive.

Please also list all the changes you did on your end so far, so we can transfer them to live?

May 7, 2026 at 2:49 pm #18020868

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I am sorry, but I can not confirm this.

Currently, define('WP_DEBUG', false); is used, WPML is active, and filters are showing up.

Only now the category labels are suddently not longer appearing translated on the translated German Shop page.

I need more time to investigate this and need to ask you for some patience.

May 7, 2026 at 3:07 pm #18020987

pavlinaD

Take your time, let us know if you have questions for us.

May 7, 2026 at 11:06 pm #18021467

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

After disabling plugins for testing, I missed the fact that the login token would no longer work.

Please provide me with admin access credentials. The private reply form is enabeld again.

In case you need a new email to create an admin account, feel free to use:
andreas.w@onthegosystems.com

May 8, 2026 at 9:18 pm #18023919

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Once I delete the original widgets and recreate them, it appears to work.

I translated the widgets at WPML > Translation Dashboard > Blocks.