PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Issues with filtering / no results (symbols like ^ replacing the word "to")

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

we are having some issues with filtering for certain terms.

It seems the plugin replaces words inside term name/slug like"to" with the symbol ^ and no results are found, even if there are.

Can you please help understanding why this is happening, if it's a bug etc.

Spoiler
If you go to url https://flexadevdev.wpenginepowered.com/ricerca/filter-search1/categoria-prodotto-dim-to-warm/ you should see some products that exist, but it says no results - even after flushing results cache. You can see the correct problems if you go directly to that term archive page https://flexadevdev.wpenginepowered.com/categoria-prodotto/interni/dim-to-warm/ . Same thing with https://flexadevdev.wpenginepowered.com/ricerca/filter-search1/categoria-prodotto-dim-to-warm-esterni/ but the results should be these https://flexadevdev.wpenginepowered.com/categoria-prodotto/esterni/dim-to-warm-esterni/

Hello

Thank you for the report and for the admin access.

You found a real bug in the SEO URL module. In the filter URL the word"to" between dashes is reserved as a range separator (for example 10-to-20 on a meta slider), and the plugin was converting it inside category slugs too. So the slug dim-to-warm was read back as dim^warm, a category that does not exist, and the filter returned no products.

I have just fixed it by hand on your site, in the file wp-content/plugins/woocommerce-products-filter/ext/url_request/classes/url_parser.php. Now"-to-" is treated as a range only when the value is two numbers, so slugs like dim-to-warm and dim-to-warm-esterni stay intact. I checked both links: they now show the same products as the category archive pages (11 and 8 products).

This fix will be included in the next plugin update, so it will stay in place after you update.

WP Engine is still serving the old cached version of those pages, so if you still see"no results", please clear the cache in the WordPress admin (WP Engine > Caching > Clear all caches) and check again.

Best regards, Alex