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

Advanced searching by Text breaks when searching for two words separated by a space and hitting "Enter" key.

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.

Hi!

It has come to our attention that the"Advanced searching by Text" extension will break if you press the"Enter" key instead of clicking on the search icon.

Here's a gif

The last search is triggered by the"enter" key and it breaks, going to the default wordpress error page, because there's a problem with the url encoding and the way you are passing the data. It returns"https://tevendemoselauto.cl/shop/tvea/name-ford explorer/" with a space instead of"https://tevendemoselauto.cl/shop/tvea/name-ford+explorer/".

I've managed to get around this by doing the following in the husky.js file of the extension, on line 111, but I prefer a fix by your team.

woof_current_values['woof_text'] = search_text;
if (ekey === 'Enter') {
let searchButton = this.input.closest('div').querySelector('.woof_text_search_go');
if (searchButton) {
searchButton.click(); // Simulate a click on the search button
}
return true;
}

Hello

Please  in  file - wp-content\plugins\woocommerce-products-filter\ext\by_text\assets\js\husky.js - add code - https://c2n.me/4iEccGg.png

woof_current_values['woof_text'] = this.searched_value;