Support

Home Forums Event Espresso Premium 1 Ticket / Registration State & User Cancel

1 Ticket / Registration State & User Cancel

Posted: March 24, 2020 at 6:44 am


kubus

March 24, 2020 at 6:44 am

Dear Event Espresso Team,
we’ve got three questions, we weren’t able to resolve properly ourselves so far. They’re all sharing the same topic however. We would appreciate if you could give us a little help with the following matters:

1. An event can be set to “1 ticket per user”. However the same user could still get more tickets by clicking the registration button again. We’re confused that even with the people addon, we don’t seem to be able to lock the registration button if the user already has a seat in the event. Is that correct or are we missing something obvious?

2. There are different kinds of status for events in Event Espresso. (e.g. cancelled, approved, etc…) and we are trying to read the status of a specific event (like you read the user name from the wp_user object). Is it possible to access a status of a course in this way via PHP for reading its value?

3. It seems for users it is not possible to cancel a participation by themselves? We only have non-profit / free courses, so we skip the pay process always and would like to make it possible for users to cancel a registration by themselves (or at least an easy way to request a cancellation). But also we didn’t find a functionality (except for “contact admin”) sadly.

We appreciate any help in these matters. Thank you very much, we do love EE so far. 🙂


Tony

  • Support Staff

March 24, 2020 at 8:07 am

Hi there,

1. An event can be set to “1 ticket per user”. However the same user could still get more tickets by clicking the registration button again. We’re confused that even with the people addon, we don’t seem to be able to lock the registration button if the user already has a seat in the event. Is that correct or are we missing something obvious?

That’s correct, EE doesn’t currently have a limit of 1 registration per user.

It can be set to allow 1 registration per order, but that doesn’t prevent a user from placing multiple orders.

If you are using the WP user integration add-on and force users to log into the site before registering then it is possible to remove the ticket selector from an event if the user has a registration on that event.

Will that work for you?

https://gist.github.com/Pebblo/eabb317ca126f5b298eca78755f2cbd1

2. There are different kinds of status for events in Event Espresso. (e.g. cancelled, approved, etc…) and we are trying to read the status of a specific event (like you read the user name from the wp_user object). Is it possible to access a status of a course in this way via PHP for reading its value?

Yes, this is possible using our models system, you can find the docs for that here:

https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System

What object do you have to work with currently?

If you have an EE_Event object you can use something like:

$status = $event->pretty_active_status(false);

Or to echo directly:

$event->pretty_active_status();

3. It seems for users it is not possible to cancel a participation by themselves? We only have non-profit / free courses, so we skip the pay process always and would like to make it possible for users to cancel a registration by themselves (or at least an easy way to request a cancellation). But also we didn’t find a functionality (except for “contact admin”) sadly.

Assuming you are using the WP User integration add-on and require users to log in before they add a registration you can use a snippet to add a cancellation feature into the My Event section.

Like so: https://gist.github.com/Pebblo/9534d318347082e63fc01f5c9c413361

Note that the above is not officially support by Event Espresso so should be thoroughly tested to make sure it suits your needs.

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

The support post ‘1 Ticket / Registration State & User Cancel’ 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 3 months, 2 weeks ago ago

Topic Tags

Notifications

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