[Resolved] Translate Clean Button Filter from BeRocket
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.
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?
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/
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.
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"