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

Categories keeps getting toggled open

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.

As we have a lot of options in our categories, our customers want to be able to close the filters. They can, but then when they select a new filter, the closed filter is being opened again as there is a value selected. See this video: https://www.veed.io/view/84aaf01c-c9de-4b23-92f3-83f9bd72252e/showcase?sharingWidget=true for a clearer explaination. We want to retain the state of the collapse. How can we achieve this?

Hello

Please  drop  me  exact  link to the  issue

 

I've put the link in the private data

Hello

Please paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png

Update  the  plugin  to  latest  version - https://products-filter.com/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato

We want to retain the state of the collapse  - You need code customization, I will give you instructions after you provide the license code

 

I've added the license key

Please update  the  plugin  to  latest  version - https://products-filter.com/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato

in file - \wp-content\plugins\woocommerce-products-filter\classes\helper.php add code- https://share.pluginus.net/image/i20220926112317.png

$block_is_closed = true;

This would mean that all blocks would always start closed? That is not our intended behaviour.

Also, this would mean that we won't be able to update the plugin again.

Hello

This would mean that all blocks would always start closed? - Yes.

That is not our intended behaviour.   - unfortunately the plugin has no other option. In another case, you need a functional with memory (remember the state)

this would mean that we won't be able to update the plugin again - After updating the plugin, you need to update this custom code

Hello,

It would be very helpful if you could make this a WP filter. This is what filters are intended for. You could simple add a 'woof_block_is_closed' filter which passes the current value of $show and $block_is_closed. Then we can safely update your plugin without constantly having to add our custom code.

Ok! such a filter exists - https://products-filter.com/hook/woof_block_toggle_state (This filter is overridden if an element is selected) But this will not help you, as I wrote in your case, you need a functional with memory

Will you add that function with memory? Because it would improve the UX of the filtering a lot. We receive that feedback from our customers fairly often.

Hello

Unfortunately, we do not plan to work on this feature right now, but I will pass your suggestion to the developers