Support

Home Forums Event Espresso Premium Custom event table not filtering categories

Custom event table not filtering categories

Posted: April 30, 2014 at 6:33 pm


DM Eddy

April 30, 2014 at 6:33 pm

I looked through previous posts and found reference to this issue. back in January, Tony Warwick suggested replacing code on line 93 of the index.php file.

New code is: <tr class=”espresso-table-row cat-<?php echo str_replace(‘,’, ‘ cat-‘, $event->category_id); ?>”>

I tried this but it does not work. On first load, all the events are listed. When I filter by category, all the events disappear.

Any ideas?


DM Eddy

April 30, 2014 at 7:49 pm

Just noticed another problem. When using the custom event table, there is no access to “view cart”. Clicking on view cart simply refreshes the custom event table. Any thoughts?


Josh

  • Support Staff

April 30, 2014 at 8:33 pm

Hi there,

In addition to the change that Tony suggested, there’s a way to avoid a potential conflict with other select boxes on the page by changing this line of jQuery near the bottom of the template file:

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

change to:

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

The view cart issue may be another conflict. If you can post a link to the page where this is happening we can take a look and troubleshoot.


DM Eddy

April 30, 2014 at 9:47 pm

Thanks Josh. That worked for the cart display. The “view cart” buttons still do not work.

Here is the link: http://trainingcompany.ca/register/event-registration/


Tony

  • Support Staff

May 1, 2014 at 3:13 am

Hi Eddy,

Where have you placed the [EVENT_CUSTOM_VIEW] shortcode?

When clicking the ‘View Cart’ the event table should not be displayed, but the cart itself.

If you go to Event Espresso -> System Status. Look under Registration Status, are all the URL’s green?

The support post ‘Custom event table not filtering categories’ 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