Skip Navigation

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.

This topic contains 8 replies, has 2 voices.

Last updated by Osama Mersal 11 months, 2 weeks ago.

Assisted by: Osama Mersal.

Author Posts
February 20, 2024 at 3:19 pm #15323705

tarmoV

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.

Please assist.

Screenshot 2024-02-20 at 17.16.25.jpg
Screenshot 2024-02-20 at 17.16.18.jpg
Screenshot 2024-02-20 at 17.15.48.jpg
February 21, 2024 at 9:25 am #15326229

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

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:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

February 21, 2024 at 11:01 am #15327152

tarmoV

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.

Screenshot 2024-02-21 at 13.00.10.jpg
February 21, 2024 at 11:02 am #15327170

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

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.

Best regards,
Osama

February 21, 2024 at 12:23 pm #15327755

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

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?

Best regards,
Osama

2024-02-21_14-21-03.jpg
February 27, 2024 at 11:29 am #15348801

tarmoV

Hi,

I checked the site and I see now that you've been able to make it work with some attributes but one is still not working: hidden link

What did you update or change? I checked the settings and both seem default and same and can not see a difference in that sense.

Screenshot 2024-02-27 at 12.27.53.png
February 27, 2024 at 11:39 am #15348896

tarmoV

For some reason the issue is now resolved

February 27, 2024 at 11:41 am #15348917

tarmoV

Thanks for the assistance

February 27, 2024 at 11:41 am #15348918

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please go to WooCommerce Multilingual-> Attributes tab-> Select the attribute, and click "Synchronize attributes and update product variations". (Kindly check the attached screenshot)

After that, the filter appears correctly.

Best regards,
Osama

2024-02-27_13-39-06.jpg