Support

Home Forums Event Espresso Premium User registration cancel progress?

User registration cancel progress?

Posted: July 24, 2019 at 11:43 am


ICLE

July 24, 2019 at 11:43 am

Has there been any progress on this feature request?

Even something simple associated to the registration record as an icon with the other icons would be nice. I envision this simple notice to Email the designated admin with all the details of the registration and a link to the page where the admin cancels the order.


Tony

  • Support Staff

July 25, 2019 at 5:40 am

Hi there,

No progress as of yet, we are currently working on the Recurring Events Manager add-on for EE4 and all that comes with it (there’s a lot to consider, many different use cases to account for, some underlying core functions need refactoring to allow for it and so on) so right now all of our development time is focused on that.

Even your ‘simple’ request highlights the fact that admins want this to work in different ways, some want the users option in My Events to actually cancel the registration when they click it. Others want just an email to be sent to the admin alerting them to the fact that the user wants to cancel (which others are against as they feel it may cause friction), some may not allow cancellations on specific events/any events and so on.

You can track the progress of this feature here:

https://trello.com/c/9mmyirqF/100-cancel-registration-button-on-my-events-page

Having said all that, the action links on the My Events output are filtered so with a little PHP you can add something similar to the above yourself. I don’t have any examples of what you are asking for but previously created a snippet to add a link to view your ticket to the my events section using the filters here:

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

(The add-on now does the above by default, so the snippet is deprecated, but it shows how to use the filters should you wish to add it yourself)

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


SupercarDriver

August 2, 2019 at 5:52 am

Can the cancel registration either be a blanket option in settings so admins can choose to let people cancel registrations. Or have it as an option per event. That way if it’s a paid event people don’t expect refunds straight away after cancelling.
We have set up a basic form on the ‘my events’ page for people to ‘request a cancellation’ but it’s more admin work to cancel the registration and free up a space. We are willing to pay a developer to create this functionality but feel it should be a core funtion.


Tony

  • Support Staff

August 5, 2019 at 7:56 am

Can the cancel registration either be a blanket option in settings so admins can choose to let people cancel registrations. Or have it as an option per event.

Both of those options are possible yes.

That way if it’s a paid event people don’t expect refunds straight away after cancelling.

I’m not sure how selecting this option on a per-event basis help with that, can you explain a little more?

If you mean allowing a certain amount of time before the admin enables refunds on the event, that’s all well and good, but usually if the user (by user I mean the end-user, the registrant) cancels the registration they expect the refund to be automatically processed regards of the time between the event itself and the time they. EE has none of that functionality built-in, we do not process refunds through the payment providers at all at this time.

We have set up a basic form on the ‘my events’ page for people to ‘request a cancellation’ but it’s more admin work to cancel the registration and free up a space.

Problem is that either way the event admin still needs to process the cancellation, granted with the above it means your that additional space is ‘waiting’ on the admin processing the cancellation request, it also opens up the possibility of the admin missing a refund. I do think the latter is the lesser of two evils as a delayed refund is better than an empty/spare space on the event.

We are willing to pay a developer to create this functionality but feel it should be a core funtion.

Unfortunately, we can’t support every feature right away and not every feature request will be/is available within the core. Even when we do commit to including a feature within core we still need prioritise our development time so it still takes time to add.

Having said that, I’ve come up with a solution for this which adds a cancel function to my events. It’s not ‘official’ (as in it’s not from EventEspresso.com) and should be considered untested, although I’ve obviously run through the testing I can think of it hasn’t been reviewed by our dev team etc.

It’s available here: https://gist.github.com/Pebblo/9534d318347082e63fc01f5c9c413361

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/

Note the comments at the beginning of the function, I highly recommend enabling the Registration Cancelled ‘event admin’ context as otherwise, your event admin(s) will have no idea a registration has been cancelled. The function adds a icon to the my events section and allows users to cancel registrations linked to their contact. It has some checks within the code to confirm that the registration being cancelled is linked to the currently logged in user and if not returns out but you should test your use case and confirm the correct registrations are cancelled and not other users.

What it doesn’t do, is check for an event-specific option to allow for cancellations although it wouldn’t be hard for anyone with some PHP to add it in, it does add additional queries to the page.


SupercarDriver

August 5, 2019 at 8:44 am

Hi Tony, thanks for the reply.

I’m not sure how selecting this option on a per-event basis help with that, can you explain a little more?

This would allow us to set all ‘free’ events as cancellable by the registrant with any paid events only cancellable by the Admin.

Problem is that either way the event admin still needs to process the cancellation, granted with the above it means your that additional space is ‘waiting’ on the admin processing the cancellation request, it also opens up the possibility of the admin missing a refund. I do think the latter is the lesser of two evils as a delayed refund is better than an empty/spare space on the event.

This is the issue we have, we have free events that people register for and then don’t turn up, as the number of registrants is limited it means people on the waiting lists (separate ticket) don’t get a chance to attend.

It’s available here: https://gist.github.com/Pebblo/9534d318347082e63fc01f5c9c413361

We’ll integrate this, and see how we go with it, thanks


Tony

  • Support Staff

August 5, 2019 at 12:34 pm

Just noting I’ve updated the above function to do a couple of additional checks and also included an event-specific check. (The link is now not shown by default).

Add a custom field with key ‘allow_user_cancellations’ and any true value to show the cancel link on registrations for that event.

Uncomment line 16 to show the cancel link by default for all events.


SupercarDriver

August 6, 2019 at 7:37 am

Thanks Tony, I’ll pass onto our other dev guy who can create a standalone plugin with the info above…


Christoph

August 6, 2019 at 8:14 am

I added the given code to a new plugin. What happens is that I get an icon “Cancel registration” in the legend of “My Events” but no button under “Actions”. Any help strongly appreciated.
PS: I’d send a screenshot but obviously I can’t add an attachment. I uploaded one here: Screenshot Tornados User Account


Tony

  • Support Staff

August 6, 2019 at 8:54 am

Did you uncomment line 16 as mentioned above to display the link for all events or are you using the allow_user_cancellations custom field on events to enable cancellation for specific events?


Christoph

August 6, 2019 at 9:05 am

Sorry, I did not. That’s it, thanks! 🙂


Tony

  • Support Staff

August 6, 2019 at 9:15 am

Great, I’m glad it’s working.

Just a reminder, there’s an important note in the comments of that function with regards to the ‘Registration Cancelled’ message type.

The ‘Event Admin’ context for that message is not enabled by default, so your event admin(s) will not receive an email if the user cancels the registration themselves so I recommend enabling it.


SupercarDriver

August 7, 2019 at 5:13 am

Hi, we’ve added this in and it works a treat, thank you Tony.
The only issue we can spot is the colour of the status bar in ‘My Events’
The individual Ticket has the correct status reg-status-RCN but the overall event still shows status as event-status-DTU


SupercarDriver

August 7, 2019 at 5:16 am

Sorry here are the screenshots:


Tony

  • Support Staff

August 7, 2019 at 6:32 am

That’s by design, it’s showing the event status and that status doesn’t change when a user cancels the registration (with the exception of a sold out event).

So the screenshots are showing 2 upcoming events and on one of those you have a cancelled registration.


SupercarDriver

August 7, 2019 at 6:50 am

Yes, so the second screenshot shows two events and the ‘Warren Classic’ is the cancelled event. might look into making the text grey of the cancelled event or something…


Tony

  • Support Staff

August 7, 2019 at 7:06 am

Has the event itself been cancelled?

Meaning the event had its status changed to ‘Cancelled’?

If not, it’s not a cancelled event it’s a cancelled registration on an event, which is correct if it’s an upcoming event and the user has a cancelled registration on it.

The user cancelling the registration doesn’t change the event status, that event is still upcoming and (assuming it is not a special event specifically for that user) the event will continue even after they have cancelled, so it only changes the registration status.

scd-cancel-00001 lists the registrations on individual tickets within an event, that’s what was cancelled and correctly shows as having a status of cancelled.

scd-cancel-00002 lists all the events the user has registrations on and shows details that specific event, both of those events are upcoming.


SupercarDriver

August 7, 2019 at 7:12 am

Ok no problem, I just know some members will see the event is still within their ‘my events’ page and think they are still registered, just wondered if there is some way to visually differentiate between events they are registered on and events they are not.


Tony

  • Support Staff

August 7, 2019 at 7:34 am

The only way you could do the above would require at least 1 additional query per event and you’d need to take over the template to do it.

You’d need to count the registrations with a status other than cancelled on the event for that user and if they have anything greater than 0 leave it as is, if the count is 0 (meaning they have registrations but they are all cancelled on that event) then override the default behaviour and apply an additional class to blank out the event (or do whatever you prefer to do for that situation).

Another option is to hide the event status bar for all events, you can do that with some CSS:

.ee-my-events-event-section-summary-row > .ee-status-strip {
    visibility: hidden;
}

The registration status bar will remain, but the status bar you are referring to will be removed for all users.

The support post ‘User registration cancel progress?’ 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