Home›Support›English Support›[Resolved] No products were found matching your selection - when filtr atributte
[Resolved] No products were found matching your selection - when filtr atributte
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues with WooCommerce / WordPress attribute filters where the slug remains in Polish despite setting the default language to English, and you encounter a message 'No products were found matching your selection' when selecting a filter, this might be due to the product attributes lookup table being out of sync. Solution: We recommend trying the following steps: 1. Resave any products that use the affected attributes. This action forces the product attributes lookup table to update with the correct information. 2. Alternatively, navigate to WooCommerce > Settings > Products > Advanced and uncheck the option Use the product attributes lookup table for catalog filtering. This adjustment resolved the issue in our tests.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum for further assistance.
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:
Hi! I have a problem with filtering using WooCommerce / WordPress attribute filters. I suspect it's an issue with the slug, because previously, for some reason, the slug for my attributes was in Polish, but the default language was set to English.
I didn't see the slug in String Translation
I went to WooCommerce > Store URLs and translated it
I went back to String Translation, translated it, and set the correct default language
Then, I went to Settings > Permalinks
But I can see that when I select a filter, the slug is still in Polish.
Then, I synchronized attributes in "version" and in "color" multiple times, but it still doesn’t work.
Interestingly, before these changes, filtering in other languages worked for the "color" attribute, but not for "version".
I would appreciate any help!
Although, when I now go into a product, navigate to the Additional Information section, and click on an attribute, it takes me to a page with all products that have this attribute, and here the slug is correct. So, it seems that this might not be the issue after all.
PS. I have already moved the site to the final domain, and I just discovered this. So now I am testing it on the old domain where everything was originally set up. But on final domain
Symptoms:
When I select a filter, the slug is still in Polish, and I get the message 'No products were found matching your selection'.
Questions:
Why is the slug still in Polish after translation?
Why does the filter not work in any language despite following the instructions?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size.
Hi, sorry for the late reply. I didn't receive any email with the information. I just went to check and saw the message. Yes, this approach is acceptable to me. Go ahead.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
This has been escalated to our 2nd tier team team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.
Also, if you don't receive emails for this thread, check if this option (see screenshot) is active. It should be active by default.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
While reviewing the query to identify where it was breaking down (i.e., returning zero results), we found that the issue was with the final clause related to the product attributes lookup table. Unfortunately, this table can sometimes get out of sync.
One solution is to resave any products that use the affected attributes, which forces the table to update with the correct information.
Alternatively, you can go to WooCommerce > Settings > Products > Advanced and uncheck the setting Use the product attributes lookup table for catalog filtering. We just did this on our local copy, and it resolved the issue.
Although, from what I’ve learned, disabling this feature might slow down filtering. However, I regenerated the tables using:
"WooCommerce > Status > Tools > Regenerate product lookup tables" in production, and it works as well. Would this be a good solution?
I also have a second question. I see that you’re working with B2BKing. Do you have any idea what might be causing the issue? :
( i try make this "WooCommerce > Settings > Products > Advanced and uncheck the setting Use the product attributes lookup table for catalog filtering" and still don't work)
I have a problem with displaying products in bulk orders after changing the language.
Introduction: since I have both a production site and a test site. Bulk orders were working on both. Generally, I don't know when this changed, but the sites are 1:1. On the production site, the only thing that changed was that I added a new product - the rest of the settings weren't touched.
On the test site, I updated plugins a few days ago, but I didn't do this on the production site - I thought, hmm maybe that's it, because after the update on the test site it still worked, so I updated everything on production, but it still doesn't work.
Main site:
hidden link
Test site: hidden link
Try changing languages and you'll see that on the test site, the translated products are displayed, but on production they aren't (Interestingly, I've already transferred the license to production, and it's not on the test site)
Interestingly, after changing the language, the table header translates correctly (product, qty, subtotal, cart) but there's no translation inside.
Interestingly, when I click on filters and select a category, the products show up correctly translated and the whole list works properly. (Interestingly, I recorded a video below - and it no longer worked, so I don't know what's going on, but earlier after selecting filters, products appeared in English, but in the video they no longer do)
I've checked what I could, which is: synchronized attributes and categories in WPML, checked and all products are translated, removed the shortcode in the English version and added it again, turned off bulk order and turned it back on, changed the price group for my account, removed cache from b2bking tools (I don't have any other cache) - I'm out of ideas about what could have happened here.
link to video: hidden link
New threads created by Bruno Kos and linked to this one are listed below:
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Could you please confirm if the B2BKing issue is related to the filter issue?
If not, I suggest we close this ticket. I will then create a new one for the other issue, as our support guidelines require handling only one issue per ticket/chat.
Hi, it seems to me that this issue is unrelated because filtering is already working, but displaying products in a collective view is not (even when following your instructions).