Support

Home Forums Event Espresso Premium Categories not working in drop down

Categories not working in drop down

Posted: June 2, 2014 at 11:49 am


fidelitysafety

June 2, 2014 at 11:49 am

Hello,
I’m sure I’ve skipped a step, but not sure which step/steps were skipped.
Notice how the drop down does not display the category when clicked.
I have 1 event assigned to each category in drop down.

All the events show until I click a category in the drop down.

See at: http://fidelitysafetyandtraining.accesstestsites.com/food-safety-manager-locations-and-registration/


fidelitysafety

June 2, 2014 at 12:09 pm

Also, this is the only thing on the page backend. [EVENT_CUSTOM_VIEW]


Dean

June 3, 2014 at 1:50 am

Hi,

It’s actually a JavaScript error coming from the Volume Discounts plugin. This error happens when Volume Discounts is active but Multi Event Registration (which Volume Discounts requires) is not active.

As such either activate Multiple Event Registration or de-activate Volume Discounts and the JavaScript should work from there.


fidelitysafety

June 3, 2014 at 3:17 pm

I’ve deleted both the ‘Volume Discounts Plugin’ and the ‘Multi Event Registration Plugin’ at: http://fidelitysafetyandtraining.accesstestsites.com/food-safety-manager-locations-and-registration/.

The list is not functioning.
Are you still seeing a JavaScript error?


Tony

  • Support Staff

June 4, 2014 at 1:38 am

Hi Garth,

We have seen this issue previously and it can be caused by a minor conflict.

We have a fix to prevent this applied to the next update to the Custom Template Add-on which is due to be released.

However if you would like too apply the fix yourself to your current version it is relatively simple.

Open up espresso-custom-templates/templates/events-table/index.php

On line 93 you’ll find:

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

Change that to:

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

Then also line 107 you’ll find:

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

Change that to:

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

The category dropdown should then work correctly.

Or if you’ve made no other changes to that template, simple replace the espresso-custom-templates/templates/events-table/index.php file with this one:

http://take.ms/3UbqF


fidelitysafety

June 5, 2014 at 11:38 am

Thank you,
This fix did work!


Tony

  • Support Staff

June 5, 2014 at 12:11 pm

Great 🙂

I’ll mark this thread resolved.

The support post ‘Categories not working in drop down’ 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