[Resolved] Product filter widget no appearing in secondary language
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is unable to display product filters in a widget on the archive shop page in a secondary language. Despite setting them as translatable and ensuring product attributes are syncing, the filters do not appear, and the message 'There are no products with the selected attributes.' is displayed. Solution: We recommend going to WooCommerce Multilingual -> Attributes tab -> Select the attribute, and click 'Synchronize attributes and update product variations'. This action should allow the filter to appear correctly in the secondary language.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please do not hesitate to open a new support ticket. We also highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, you can reach out to us on 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.
Tell us what you are trying to do?
Display product filters in widget on the archive shop page: hidden link
I can not get them to show up in the secondary language. I've tried setting them as translatabale and translatable if available with fallback but no success.
Getting "There are no products with the selected attributes." in secondary language although product attributes are syncing and present when viewing under product.
Thanks for contacting WPML forums support. I'll be glad to help you today.
1) Please let me know how this filter is created. Also, please go to Products-> Attributes-> Configure "Brand" terms and check the product count for each term in both languages.
If the translated terms have 0 product count, please make sure you translate the products belonging to each term.
2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)
You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:
1) I've created this filter under "Appearance" > "Widgets" > "Filter by Attribute Controls"
The products are syncing filter attributes and are visible under secondary language. The filters are not appearing or don't show the translated filters under product page in secondary language either. Please view screenshot
2) I've increased the WP memory limit too, thanks for this.
Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please backup your database and website ❌
✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.
Thanks for the access details. I checked the issue and found that it works correctly when adding the widget as a classic widget in the footer. (hidden link)
I tried replicating the issue on the sandbox site but couldn't. (hidden link)
Sandbox login: hidden link
Would you please compare WooCommerce and WPML settings on the sandbox site with your site's settings?
Please go to WooCommerce Multilingual-> Attributes tab-> Select the attribute, and click "Synchronize attributes and update product variations". (Kindly check the attached screenshot)