how to get the number of tickets available per order for this event
Do you mean the ‘Maximum number of tickets allowed per order for this event’ option in the Event Registration Options?
Just to clarify, that option is the number of tickets the current registration can add to their cart for that event in a single transaction. Say you had 100 tickets and that option was set to 13, the user can select a combination of tickets from that event totalling a qty of 13 in a single group.
Based on your previous questions I’m not sure it’s the correct value you need but to get it, you use the EE_Event object:
echo $event->additional_limit()
I’m assuming you have either a WP_Post or EE_Event (likely both?) object for the event in question?
If you don’t have an EE_Event object and your within the loop you can use:
$event = EEH_Event_View::get_event($EVT_ID);
($EVT_ID will be the post id)
or available space for registration in this event?
The support post ‘Display Attendee Limit’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.