Support

Home Forums Event Espresso Premium Display Attendee Limit

Display Attendee Limit

Posted: February 12, 2021 at 1:33 am


Mark

February 12, 2021 at 1:33 am

Hi!
I want to know, how to get the number of tickets available per order for this event or available space for registration in this event?


Tony

  • Support Staff

February 15, 2021 at 4:24 am

Hi Mark,

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?

Please see my post to your other thread here:

https://eventespresso.com/topic/template-tags-for-event-meta/#post-321118

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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Tony 2 weeks, 2 days ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!