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

Checkboxes - JS clicks on the box but using the filter clears the checkbox

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,

 

I have the filter on a page, when the page loads, I use Javascript to click on one of the checkboxes so that it is selected.

The problem is, when I click on another checkbox, then click the filter button, the first checkbox that JS clicked goes away.

Example:

I have a filter category called"size" which has the options, small, medium and large.

On load, JS clicks on"small".

I click on"medium" and click the filter button.

When the page loads,"small" is no longer selected, only"medium" is.

 

Thank you for your help.

Hello

Please drop  me  exact  link to the  issue

You should make a click trigger

I've added the link to the private data.

The link contains URL variables, those are being used to click on the checkboxes.

This is a sample of the code used to click on the checkboxes:

case"full":
jQuery(".woof_checkbox_term.woof_checkbox_term_598").click();
break;

 

Thank you for your help.

Hello

Check if this checkbox is checked  and only then execute your code

I will do some more testing.

 

Thank you.

Welcome;)

Hello,

I found this woof_current_values = {}; being used to clear the filters.

Is it possible to use it to set the filters?

For example, on page load, I would like the search filter 'size' to have 'small' already selected.

Thank you again for all of your help.

Hello

This will not give the desired result, the filter will not be checked.