This used to work perfectly, but I just did a final test before going live tomorrow. hidden link
The Countries (Land) and Regions (Regio) taxonomies in the select boxes, should only be showing the relevant choices. Now they show all countries and all regions.
I have no idea what I could have done to break this. Like I said, last time I checked, the select boxes were ok 🙁
But when you edit the Price range filter or click the Filter Reset button ("filters verwijderen"), after the AJAX call, the select boxes are ok. The Category View ID is 3484.
It might be AJAX related, because Minesh built us an excellent Upsell/Related Products View, and that also no longer works. It should only show Products within that same category, but it now shows all products
UPDATE: I am moving all Elementor Templates, Toolset Views, CSS, ... to the live site and hidden link does show the correct dropdowns for Country and Region. So bizarre.
Could that be due to (object) caching on the dev site? If so, how to fix this, because we will soon transfer the live site from one.com to our Vultr server at GridPane, so the live site will move to the server environment of the current staging/dev site.
When I use the search fields for 'Country' and 'Region' fields ( on page hidden link ), the options and the results are updated through AJAX correctly.
( I have tested this both as a guest and as a logged-in user )
Is it possible that you are having this cache/AJAX issue on only any particular device or browser? Can you please test this after clearing all involved caches?
When you visit that Whisky category, what do you see in the dropdown?
Just like the screenshot, because that displays the issue. Barbados for example does not belong there, no products in the category whisky have a taxonomy Country of Barbados.
Thank you for sharing the screenshot and I understand what you mean now.
I thought your report was that the search options and the results were not updating through AJAX. I see now that the option(s) which don't produce results are showing.
Yesterday, when I checked the search settings, it was correctly set to show only those options that could produce results. But today I can't access the website admin area, because the access link seems to be expired.
Can you please share the temporary admin login details and not the admin access link? I'll also need your permission to download a clone/snapshot of the website, to investigate this on a different server, if needed.
I've downloaded the clone of the dev website and will be performing some tests to see why the option to show only the relevant results doesn't work when the page loads.
Waqar is off, so I wanted to take a look at this for you.
Reading through the thread, it seems like the reported issue happens on the dev site, but not on production, and you want to establish why the problem exists on the development server.
I can access the back end of your production server via the access link you shared, but when I try and visit any page on the dev server it gives a 500 error (i.e. there is a fatal PHP error for any page visit).
Can you resolve the problem on the dev server (you may need to check the debug.log to see what fatal error is affecting the site), and then I can take a look.
Thank you for waiting as I completed some testing on your development website's clone.
While I was able to experience the same issue on your website's clone on my test server (even without the object cache). I was not able to reproduce this on a clean install.
For this reason, it will need to be treated as an exception, especially because the same is also not being experienced on the production website.
If the following script is included in the 'Products Filter' view's "JS editor", it forces the 'change' event to the land taxonomy's select field, when the page loading completes:
This 'change' makes the search form update and shows only the relevant options. Feel free to try this script on your development website and let me know how it goes.