Skip Navigation

[Resolved] counter result is not update on taxonomy filter

This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Minesh 7 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#576221

Hello Team,
I want filter based on ?m=meeting-autumn-meeting. where ?m=" This is the id of checkbox".
I have added code like this: if I found 'meeting-autumn-meeting', call trigger click event on checkbox so the filter will work but counter of the result is not updated.

Here is the code:
jQuery(window).on('load',function(){
var meetingType = getUrlParameter('m');
if(meetingType)
{
jQuery('.left-checkbox-bar .form-group:nth-child(3) > label').addClass('active');
jQuery('.left-checkbox-bar .form-group:nth-child(3) .checkbox-grp').css('display','block');
jQuery('.left-checkbox-bar .form-group:nth-child(3) .checkbox-grp input#'+meetingType).trigger('click');

}
});
Can you please do needful?

What is the link to your site?
hidden link

#576332

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - the problem URL you shared with me is looks like login protected. To see your page with filter I think I need temporary access to your site.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#576824

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I can see you have added lot of custom JS code to your view Filter's JS box.

I can see when you click on checkbox "autumn-meeting" it shows 12 results and it loads 12 results with infinite scroll.

I do not know if you are aware about "Forntend Events" button available within the view Filter's JS box which will allow you to add custom JS callback as per your need.

Refer this image:
=> hidden link

For example:

jQuery( document ).on( 'js_event_wpv_parametric_search_results_updated', function( event, data ) {
    /**
    * data.view_unique_id (string) The View unique ID hash
    * data.layout (object) The jQuery object for the View layout wrapper
    */
        
YOUR CUSTOM CODE GOES HERE
       
});