Support

Home Forums Event Espresso Premium Filter by Category Not Working

Filter by Category Not Working

Posted: April 28, 2014 at 1:57 pm


cmessengerlehmann

April 28, 2014 at 1:57 pm

Hi
I’ve read this support thread: https://eventespresso.com/topic/filter-not-working-correctly-add-ons-question/ – for a resolution to this issue but it does not seem to be working for me. Here is a page where you can find the filter: http://sosfirstaid.ca/courses/cpr-c-courses/

As you’ll see when you select a category it clears the listings view of any content.

Can you let me know of the fix for this.

Thanks
Terry


Dean

April 29, 2014 at 12:39 am

Hi,

Please remove the add on from your site (delete it) and re-download it from your account page and re-install. We had an issue where we couldn’t update the version number but the fix was added, so installing it again should resolve the issue for you.

Please let me know if it does not.


cmessengerlehmann

April 29, 2014 at 4:03 am

Hi Dean
I have done this but still getting the same result. If it cannot be fixed in the short term is there a way to disable that functionality?

Terry


cmessengerlehmann

April 29, 2014 at 4:11 am

Hi Dean
I may of been confused as to which files I needed to delete and download again. I had deleted the Custom Templates Add-on but was it the Custom Files v3.1 which I needed to delete and download?

If it is the Custom Files v3.1 that I am supposed to be downloading then can you give me instructions as to where I’m supposed to be deleting the original files from.

Thanks
Terry


Josh

  • Support Staff

April 29, 2014 at 10:39 am

Hi Terry,

In this case the edits would need to made directly to the custom plugin that was installed when we did the start time end time customizations. The plugin we installed was espresso-events-table-sos and it has one file: index.php.

line 99 has this:

<tr class="espresso-table-row cat-<?php ech o $event->category_id; ?>">

and can be changed to this:

<tr class="espresso-table-row cat-<?php echo str_replace(',', ' cat-', $event->category_id); ?>">

then line 118 has this:

var ee_filter_cat_id = jQuery("option:selected").attr('class');

which can be changed to this:

var ee_filter_cat_id = jQuery("#ee_filter_cat option:selected").attr('class');

If you’d prefer, we can make those edits if you send FTP credentials via this form:

https://eventespresso.com/send-login-details/


cmessengerlehmann

May 2, 2014 at 7:57 am

Hi Josh
I’ve tried this code fix but its still not working.
I will send you ftp info so hopefully you can log in and see exactly where the issues lie.

Thanks
Terry


Josh

  • Support Staff

May 2, 2014 at 11:19 am

Hi Terry,

I made the above suggested edits and it’s working now.


cmessengerlehmann

May 2, 2014 at 11:48 am

Hi Josh
Thanks.. I see it working for some categories but not for all. For instance if you filter for this category ‘Emergency First Aid with CPR C or AED’ then nothing shows but if I look in the Event Overview in the admin and filter for this category I can see 24 listings.

Same for Standard First Aid with CPR C / AED… when I try to filter for it nothing shows up but when I select the link from the menu or in the sidebar there are events showing for those links.

Thanks again.
Terry


Josh

  • Support Staff

May 5, 2014 at 9:14 am

Hi Terry,

You can try going to edit those events, and unchecking the categories, they are assigned to, then save, then assign them to the categories again.


cmessengerlehmann

May 5, 2014 at 9:47 am

Hi Josh
Thanks for the reply here. However with the amount of events we have in the EE system this will more than likely not happen.

If we can’t get it working in an efficient manner the I would rather just remove the filter dropdown menu. Can you tell me how I would remove it from all event pages.

Thanks
Terry


Josh

  • Support Staff

May 5, 2014 at 11:18 am

Hi there,

The simple and quick way would be to hide it with CSS, here’s something you can add to your custom stylesheet:

p.category-filter {
display:none;
}


cmessengerlehmann

May 5, 2014 at 1:47 pm

Thanks Josh

That will do.


Josh

  • Support Staff

May 5, 2014 at 2:58 pm

You’re welcome.

The support post ‘Filter by Category Not Working’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso