Support

Home Forums Multiple Event Registration Add-on 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


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

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

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

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>’;

 

 

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