Support

Home Forums Event Espresso Premium How to display the # of tickets available for a recurring event.

How to display the # of tickets available for a recurring event.

Posted: June 9, 2013 at 3:35 pm


David Grandmaison

June 9, 2013 at 3:35 pm

Wordpress: 3.5.1

Event Espresso: 3.1.33

New Installation

Website: http://www.TheDuluthExperience.com

Thanks in advance for any advice you can provide. I am attempting to display the number of tickets available in the event description using the following code:

[ATTENDEE_NUMBERS event_id=1 type=available_spaces]

I have a recurring event and need the event_id to refer to the event being viewed. Do I need to go through each of my events and alter the “1” to reflect the event ID or is there code to make that tag refer to the event being viewed.

Basically, I want to avoid having to edit each description with the event ID #.


Dean

June 10, 2013 at 1:39 am

Hi David,

If you want to avoid editing each and every event then you will need to dig into the code a little bit.

Basically in the registration_page_display.pph file which is located in the event-espresso/templates folder you can edit this to add in the following

This will then display the available spaces in the registration page for each event automatically.

It is advisable to copy the registration_page.php and registration_page_display.php files (you need to do both) to wp-content/uploads/espresso/templates and edit the file there. That way the changes will not be over written on updates.


David Grandmaison

June 14, 2013 at 5:25 pm

Thank you Dean. I must admit that I am not super familiar with editing php files. Is there a specific location within the code that the snippet you provided must be added?


Dean

June 17, 2013 at 12:04 am

Hi,

Not really no, it depends on where you want the count to display. If you are unsure then I would advise getting a web developer to help you out or a service such as Tweaky.

Heres a small example where I have added it below the dates but above any prices http://d.pr/i/972R

The support post ‘How to display the # of tickets available for a recurring event.’ 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