Support

Home Forums Event Espresso Premium Cancel user registregtion

Cancel user registregtion

Posted: April 4, 2021 at 2:31 pm


Micha1202

April 4, 2021 at 2:31 pm

Hi,

Following the post: https://eventespresso.com/topic/user-registration-cancel-progress/ I have tried to apply cancel button (which is very important for us, we have free courses for our volunteers). I have used the code (using Snippets) but it seems the event was not the canceled for the users and the event still appears under [ESPRESSO_MY_EVENTS].
Also I the got the following Warning after cancelation process:

Warning: Cannot modify header information – headers already sent by (output started at D:\home\site\wwwroot\wp-includes\class.wp-styles.php:290) in D:\home\site\wwwroot\wp-includes\pluggable.php on line 1329

Warning: Cannot modify header information – headers already sent by (output started at D:\home\site\wwwroot\wp-includes\class.wp-styles.php:290) in D:\home\site\wwwroot\wp-includes\pluggable.php on line 1332

any idea?

Thanks,
Micha.


Micha1202

April 5, 2021 at 6:36 am

image for my events

As you can see in the attch, after I have clicked on cancel the user still see the event in his list, but he can re-register to the event (the ticket for each event is max for each user) and he will see 2 tickets.


Micha1202

April 5, 2021 at 6:52 am

https://pasteboard.co/JVV7Opz.png


Tony

  • Support Staff

April 5, 2021 at 2:33 pm

Hi there,

I think there’s some misunderstanding of what that function does here.

I have used the code (using Snippets) but it seems the event was not the canceled for the users and the event still appears under [ESPRESSO_MY_EVENTS].

That’s expected.

The snippet does not cancel the event, it will change the registration status for the selected registration to ‘cancelled’. Which looking at your screenshot appears to have been correctly set as the ‘status bar’ (the coloured bar to the right of the registration) is grey, meaning it has a status of cancelled.

The registration is expected to still show up in the My Events section by default, it lists the registrations linked to your contact and will display those registrations when with various statuses.

As you can see in the attch, after I have clicked on cancel the user still see the event in his list….

This is expected.

Are you expecting only ‘Approved’ registrations to show in the My Events section?

but he can re-register to the event (the ticket for each event is max for each user) and he will see 2 tickets.

This I don’t follow, we don’t limit how many times a user can register onto an event within Event Espresso.

Sounds like you want to limit each user to only be able to register onto each event once, is that right?

Also I the got the following Warning after cancelation process:

Are any other errors thrown with those? Those 2 warnings are not from Event Espresso.


Micha1202

April 7, 2021 at 2:30 am

Hi,

Thanks for the quick answer.
One issue is still open
Registration that was cancelled still appears as “Pending Payment Registration, Upcoming Event” when MY_EVENT shortcode is not expanded, it is changing only in expanded mode (with regards to the color)

Please view the below image

https://pasteboard.co/JWco5jL.png


Tony

  • Support Staff

April 7, 2021 at 4:15 am

Registration that was cancelled still appears as “Pending Payment Registration, Upcoming Event”

‘Pending Payment Registration, Upcoming Event’ is on the legend because Upcoming events and Pending Payment registration both use a status colour of blue.

The status bar next to the event name/title, is giving the user an indication of the event status.

The status bar next to the registration(s) gives an indication of the registration status.

So in that screenshot, that’s an upcoming event on which the user has a single registration with a status of cancelled.

See: https://monosnap.com/file/vOVHznIbgKOEex2Ur1LKVLKBIl9cwA


Micha1202

April 8, 2021 at 6:47 am

OK,

So there isn’t any option to expose to the user only events which he register (and not cancel)? or the color the events which he cancel in different color? My aim is that user will see in the home page only events which he registered and exists (if it was cancelled so we can delete it from the shortcode)


Tony

  • Support Staff

April 9, 2021 at 4:02 am

Do you need to show the events or only the registrations?

If you are only wanting to display approve registrations then the simplest method will be to switch over to the simple_list_table template:

[ESPRESSO_MY_EVENTS template=simple_list_table]

Then add this snippet onto your site: https://gist.github.com/joshfeck/7615cf58377ddb6da5f8dafe903b3c68

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/

Doing so with the events table is possible but will require custom code and a custom template for the add-on.

You must be logged in to reply to this support post. Sign In or Register for an Account

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: publish

Updated by  Tony 6 days, 5 hours ago ago

Topic Tags

Notifications

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