Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
How to display member is already registered to Event. | Event Espresso - Staging Server

Support

Home Forums Multiple Event Registration How to display member is already registered to Event.

How to display member is already registered to Event.

Posted: April 28, 2013 at 9:15 pm

Viewing 7 reply threads


Carlos Flores

April 28, 2013 at 9:15 pm

How to display member is already registered to Event. In order to prevent duplicate registration. I have a event membership with older members and they seem to forget that they paid for an event.

How to prevent this? How to replace the add to cart or register for this event for memebers who already registered for an event?

All members are registered to the website therefor it should be possible since its not a public website.


Dean

  • Support Staff

April 29, 2013 at 6:52 am

Hey Carlos,

I came up with a quick way to do this, for logged in members.

https://gist.github.com/Apina/f11b5ce2db10f7b3bb93

It gets their id and checks it against the database for whats in their My Events list in their profile. It doesnt check against paid events etc, its quite basic.

I havent heavily tested it so please use at your own risk. Make sure you back up files etc.

It can go in the event_list_display.php or registration_page_display files.


Carlos Flores

May 1, 2013 at 1:19 pm

Thank you but It almost works.

It just displays a numerical 1 before the msg and on all events now. How to have your code but without the 1 ?

Thank you again!


Carlos Flores

May 1, 2013 at 1:21 pm

It does display the msg hey you booked this event but my complaint is that it now shows a numerical 1 before the msg.

Hopefully its easy to remove.

Thanks again!


Dean

  • Support Staff

May 2, 2013 at 2:03 am

I left a test echo uncommented, the gist has been updated. https://gist.github.com/Apina/f11b5ce2db10f7b3bb93

Bear in mind this is just something I quickly made for you, it is there to be built on and is not to be considered 100% functional and will not be updated by us.


Dean

  • Support Staff

May 2, 2013 at 5:51 am

Hi,

Please check the Gist again, it was throwing an error when the user was logged out, so I sorted it.


Carlos Flores

May 2, 2013 at 2:07 pm

Awesomeness!!! Thank you very much. Worked!

Thanks Dean!


Jørgen Strand Skalmerås

May 13, 2013 at 10:53 am

Finally! Thank you very much! I have searched all over for this and many have asked for the same without luck. You should make it a sticky or something.

I added this to hide the button too:

echo ‘<style>.btn_event_form_submit {display:none;}</style>’;

 

 

Viewing 7 reply threads

The support post ‘How to display member is already registered to Event.’ 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 - Staging Server