Support

Home Forums Event Espresso Premium Displaying availability status

Displaying availability status

Posted: March 7, 2015 at 1:29 pm

Viewing 7 reply threads


Michal

March 7, 2015 at 1:29 pm

We are setting up classes (we have EE3) and would like to provide some status as to whether classes are almost full, sold out or available. For almost full we would want to set the watermark – and then display the status.
Is there a way to check what % of registrations have been sold and use that to display status on the event?
Also, for recurring events – let’s say a class that meets 6 times – is there a way to just display the first event in the series of events and not show every single occurrence. We don’t want to display all the event details not in a table but in a list. However, when we display the calendar we would like to have all the sessions display.


Dean

March 9, 2015 at 6:50 am

Hi,

Have a look at this code: https://gist.github.com/Apina/65d8ed21addf4c067e41

It’s a little bit old but still works for EE3. It would need to be added into the appropriate files (event_list_display.php and/or the registration_page_display.php files) replacing the existing available spaces code.

Regarding the Recurring events, in the actual plugin files, there is a folder called recurring-event-templates.

In there are two files:

event_list.php
event_list_display.php

These can be copied over to /wp-content/uploads/espresso/templates and what will happen is all the recurring events in a series will be reduced to one in the event list, click the register link and the dates will be shown and the user can click the date they want to register to.

Screenshot http://take.ms/0OTqi


Michal

March 9, 2015 at 8:40 am

Dean thanks – regarding the Recurring events – is it possible to have a registration for the full class? Is it possible to pro-rate the remaining classes if one where to sign up for example for 5 of the 6 classes? Not sure how i set up a pricing scheme for that.


Lorenzo Orlando Caum

  • Support Staff

March 9, 2015 at 11:15 am

Hi,

Dean thanks – regarding the Recurring events – is it possible to have a registration for the full class? Is it possible to pro-rate the remaining classes if one where to sign up for example for 5 of the 6 classes? Not sure how i set up a pricing scheme for that.

You could create a separate event to handle the registration for the full course / class. Then you could add a link to the individual sessions in the event desription area with messaging similar to this:

Need to sign up for the full course? Click here

The pro-rating option may be possible by using the Volume Discounts add-on which checks for some conditions before applying a discount:

https://eventespresso.com/wiki/volume-discount-add-on/


Lorenzo


Michal

March 9, 2015 at 4:06 pm

I copied the files to the template area and that got rid of the multiple event listings. However, it removed the Add to Cart so is there another file that we need in order to allow for multiple event registrations as well?


Michal

March 9, 2015 at 10:19 pm

Also, when copying over the template the featured image disappeared in the display as did all other meta data such as the pricing, age range that we listed in the class description. Any way to get that back?


Lorenzo Orlando Caum

  • Support Staff

March 11, 2015 at 4:56 pm

Hi, those templates were written for the recurring events manager. They would both need to be rewritten to add compatibility for the Multiple Events Registration add-on.

That isn’t something that we can take on at this time through the support forums but here is another idea:

First, deactivate those templates from the recurring events manager add-on.

Then setup this tutorial so that CSS classes for event categories are added to each event:

https://gist.github.com/lorenzocaum/bd201d77b82f5a8d8dd2

Then when while creating an recurring event, add that new event to an event category of your choice and then a second (additional) event category that will be used for all recurring events.

For example, you could add events to an event category called Classes. Then we’ll need a second event category (e.g. extraseries) whose purpose will be for adding another CSS class that can then be hidden using display none.

It is important to only use this additional event category for linking to display none otherwise you could accidentally hide some events and then you may be confused on how they disappeared.

After creating the series of recurring events, return to the original event (first event in series) and remove that second event category (the one that will fill the purpose above.)

Now you can do something like this:

page-id-123 .extraseries {display:none}

In the example above 123 is the page ID of your events listing page and the line of CSS can be added to your child themes stylesheet, My Custom CSS, Reaktiv CSS Builder or another CSS plugin.


Lorenzo


Michal

March 12, 2015 at 7:43 am

Hi Lorenzo,

Thanks- this will do it I think

Viewing 7 reply threads

The support post ‘Displaying availability status’ 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