Support

Home Forums Event Espresso Premium Changing how EE4 displays spots available in events

Changing how EE4 displays spots available in events

Posted: December 14, 2016 at 3:32 pm

Viewing 4 reply threads


Ted Harty

December 14, 2016 at 3:32 pm

If you look at my Jan event @ http://immersionfreediving.com/pfi-freediver-course/ You will see is it says

Available Spaces 7/3 Which means 7 spots sold 3 spots left.

Available spaces 5/5 means 5 spots sold 5 spots left

Available spaces 9/1 means 9 spots sold 1 spot left.

this is very unintuitive.

How do I make it say Available spaces 2/10 mean 2 spots left
Available spaces 9/10 means 9 spots left.

The way I had it displaying in EE3 which is the way I would absolutely prefer was simply (Spots left 3). This simply meant 3 spots left. I did this by doing something like Spots left (5 – [shortcode for spots sold]) My courses all have 5 spots max, so this would always show how many spots left.

How can I do this on EE4?

Thanks,


Josh

  • Support Staff

December 15, 2016 at 11:50 am

Hi Ted,

It wouldn’t be so unintuitive if someone hadn’t changed the label text that normally says “Registrations / Spaces: ” there, now would it? Is that something that someone on your team customized on your site? Normally the label text looks like this:

https://www.evernote.com/shard/s4/sh/f397b6cd-55e6-4deb-8d23-f95c62fb5097/d83c63fc57066da7584c8f65d13859e4

If you’re keen on changing this, you can use the FHEE__EE_Calendar__tooltip_datetime_available_spaces filter hook and build a little function that hooks into that filter to change how the numbers are displayed.


Ted Harty

December 15, 2016 at 11:55 am

The problems was originally instead of being displayed as the image showed it was on 2 different lines instead of one which also made it confusing.

Can I use a support token and have it just display the spots available?

Thanks,


Ted Harty

December 15, 2016 at 11:56 am

I don’t know how to use the filter hook you are talking about.


Josh

  • Support Staff

December 15, 2016 at 2:12 pm

This is one way that the filter hook can be used:

https://gist.github.com/joshfeck/c85293043cd2d766041f3515cf0cf3a1

If you prefer that someone from EE staff make these edits on your site, you can purchase a support token and we can probably get that done by tomorrow.

Viewing 4 reply threads

The support post ‘Changing how EE4 displays spots available in events’ 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