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

Toggle multiple fields at once

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 like your plugin. I have a question that hopefully has an easy solution. I have a product filter with 9 fields. I'm using shortcode to insert at the top of a page. I would like 3 of the fields to be visible all the time, and the other 6 fields I would like the user to be able to toggle on and off all at once when they click the"additional filters" link.

It's working, however I would like those 6 fields to stay open if they were open when the form was submitted. Right now, they always go back to closed when form submits. I'd like it to stay open if open, or closed if closed, on submit. Does that make sense?

Page URL in private data.

Thank you!

 

Hello

https://c2n.me/45VksVw.png - This is a third-party functionality. Please contact the developer who did this

I AM the developer the did this. I am asking what jquery I can add to alter your plugin to allow those additional fields to stay open if they were open, or closed if closed, when the form submits.

I purchased the plugin assuming I would get the support I’d need to accomplish this customization.

Hello

This functionality in fact is not related to my filter! It's just a container job. I will gladly help you with my plugin - but this should be related to the functionality of my plugin.

This is native JS:

You should keep the current state of the container for the user.

So  use  cookie  OR   better  use  html5 storage

to check if the user's browser supports this storage - woof_supports_html5_storage()

To  save container state - localStorage.setItem()   to get - localStorage.getItem()

An  example:  in  file  - \wp-content\plugins\woocommerce-products-filter\js\front.js - function woof_checkboxes_slide()

AND

Read  this please - https://stackoverflow.com/questions/37538465/save-current-state-after-jquery-click-function

 

 

Thank you so much for this guidance. I really appreciate it!

Hello

Welcome;)