Posted: 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]. 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, |
|
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. |
|
|
Hi there, I think there’s some misunderstanding of what that function does here.
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.
This is expected. Are you expecting only ‘Approved’ registrations to show in the My Events section?
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?
Are any other errors thrown with those? Those 2 warnings are not from Event Espresso. |
|
|
Hi, Thanks for the quick answer. Please view the below image |
‘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 |
|
|
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) |
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:
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. |
|
The support post ‘Cancel user registregtion’ 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.