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

calling click programtically on the search icon present in search bar

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.

Hey,

I need an urgent help I want to call enter key or click on the search icon which is present in the search bar. I tried soo many things but none helped me. Can you please suggest me any way to do this. It would be great help.

Please see this link - https://ehob.founderscaffe.com/clinical-resources/

There is a test just below search bar. So basically on click of Refine Search I want to call click on the search icon. So that search works on the click of that button too. Please help me I can't switch my plugin to any other plugin. This is only best suite for my site.

Hello

In this case, you need to handle the click event on your custom button and call this JS:

jQuery('.woof_text_search_go').trigger('click');

hey, the above code didn't worked for me. Than I applied this code

jQuery(document).ready(function() {
$('#refine_search').on('click', function() {

woof_submit_link(woof_get_submit_link(), 0);
setTimeout(function() {
var $icon = jQuery('.woof_remove_ppi i');
$icon.text(jQuery('.woof_container_inner input[type="search"]').val());
}, 2000); // Delay execution for 2 seconds (2000 milliseconds)
});
});

This worked correctly for me. BUT than i add this code in the ADVANCED  tab of the plugin but from there it is not working please let me know what I need to do here to make this code work after ajax search loading.

 

Please help me. This would be a great help for me.

Hello

Please  delete  this  code - https://share.pluginus.net/image/i20240429133821.png

Hey, I did this thing too. But it didn't help me.

Hello

You should hire a developer to fix this custom code

'.woof_remove_ppi i' - such selector does not exist on the page

ok thanks for your help

 

welcome;)