Skip Navigation

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

Problem:
The 'Clean Filter' button from the BeRocket AJAX Product Filters plugin disappeared on translated pages when using WPML. The button, added via a shortcode, was only visible on the original Portuguese version of the site.

Solution:
If you're experiencing the same issue, follow these steps:
1. Go to BeRocket > Filters in the WordPress dashboard.
2. Switch to the secondary language using the language switcher in the admin bar.
3. Confirm that the 'Clear Filter' translation is listed and set to Widget type: Reset Products button.
4. If the button is still missing, edit the filter in the secondary language.
5. Check all settings, including translations, and click 'Edit anyway' if a warning appears.\n\nBefore making changes, make a full website backup.

This solution might be outdated or not applicable to your case. We recommend checking the known issues page, confirming the version of any permanent fix, and ensuring you have installed the latest versions of your plugins and themes.\n\nIf the issue persists, please open a new support ticket in the WPML support forum.

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.

Tagged: 

This topic contains 7 replies, has 0 voices.

Last updated by Otto 6 days, 6 hours ago.

Assisted by: Otto.

Author Posts
February 11, 2025 at 5:19 pm #16693042

growingoldU

Background of the issue:
I am trying to translate a 'Clean Filter' button using WPML. The button is part of a group filter and was added to the page with a shortcode. I am using the Divi Theme. The issue can be seen on this page: hidden link.

Symptoms:
The 'Clean Filter' button does not appear on translated pages. It only appears on the original Portuguese page.

Questions:
Why does the 'Clean Filter' button disappear on translated pages?
How can I ensure the button appears on all language versions?

February 11, 2025 at 9:23 pm #16693698

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hi,

The filter is created with the plugin AJAX Product Filters for WooCommerce, right?

This plugin is not in our compatibility list, however, it doesn't necessarily imply that it is not compatible, just that our team has not tested it yet.
https://wpml.org/plugin/

You mention that the filter is added via shortcode, please take a look at this documentation:
Translate Custom Shortcodes with WPML
WPML Language Configuration File

If this does not help, can you please elaborate a bit more in how the filter is created and added to the page?

Best Regards,
Otto

February 12, 2025 at 10:04 am #16695336

growingoldU

Hello Otto,

Yes, the plugin is AJAX Product Filters for WooCommerce by BeRocket.

I read the documentation you sent me and I think there is already an xml file created to translate everything on the plugin (see attachment). In addition, I can translate the text of the Clear Filter button, the only problem is that the button disappears from the page.

I created a group filter with two "individual filters" which are the category filter plus the clear filter button. Then, I went to Divi Builder and added the shortcode to the page's template.

To translate the text, I went to WPML > Translation Management and I found the text to translate that is classified as Type: Product Filter. I clicked on edit, and it sent me to the filter settings page where I could add the translations.

Best Regards!

clear filter translation.png
xml filter file.png
February 12, 2025 at 3:16 pm #16697522

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Thanks for the detailed explanation 🙂

We need to confirm if the issue is related to WPML and AJAX Product Filters for WooCommerce. Or if Divi is involved too.

To do so, I created a fresh WP site with WPML and its addons, WooCommerce and Divi installed (but inactive).

Can you please install and set up AJAX Product Filters for WooCommerce with the bare minimum to see the issue?

If the issue is reproducible, let me know and I'll take a look.

If not, please switch to Divi and try to reproduce the problem again with the minimum necessary stuff.

You can access the testing site by following this link:
hidden link
Let me know once it's done and I'll take it from there.

Thanks for your cooperation!

Best Regards,
Otto

February 12, 2025 at 4:00 pm #16697718

growingoldU

I'm not really good at creating a page without Divi, however I tried my best.

It's a basic page and I think the filter plugin isn't really filtering, however, the error when you switch from English to Portuguese is there.

I translated the button's text at BeRocket > Filters > Edit ID:253 Clear Filter > Language (right sidebar at the bottom).

Thank you for your help!

February 12, 2025 at 5:18 pm #16698379

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks!

I took a look and managed to make the button appear.

On the sandbox site, there was an issue with the translations. I recreated them using the Duplicate feature.

But what I suggest you to try on your end is the following:

❌ Please make a full website backup before proceeding ❌

- Go to BeRocket > Filters
- Switch to a secondary language using the language switcher in the admin bar
- Make sure the Clear Filter translation is listed there
- Make sure that it has the type: Widget type: Reset Products button
- If something is still not working as expected in the front end edit the filter (in the secondary language) and check all the settings are set correctly. Including the translations. When the warning appears click on "Edit anyway"

Let me know if this helps, please.

Best Regards,
Otto

February 13, 2025 at 9:38 am #16700941

growingoldU

Hello Otto,

Thank you so much for your help! Everything is working now.

Have a great day!

February 13, 2025 at 12:24 pm #16701932

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Great! I am happy to hear that 🙂

I am closing this ticket, feel free to reach out again if you need any help.

Best Regards,
Otto