Support

Home Forums Event Espresso Premium Custom validation messages/rules

Custom validation messages/rules

Posted: May 11, 2016 at 3:48 am


deckchairuk

May 11, 2016 at 3:48 am

Hey,

I was wondering if there is any way I can edit the validation messages/rules on certain forms. I’m using the multiple events plugin and want to allow users to purchase tickets for others that already have accounts (currently it only lets you purchase tickets for yourself or other without accounts), is this possible be it custom or out of the box?

Thanks, Harry.


Josh

  • Support Staff

May 11, 2016 at 10:55 am

Hi Harry,

It sounds like you want to remove the check on email address input in the reg form for a match to an existing user account? If so, you add the following code to your site:

add_filter( 'EED_WP_Users_SPCO__verify_user_access__perform_email_user_match_check', '__return_false' );

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.


deckchairuk

May 12, 2016 at 2:52 am

Hey Josh,

Thanks for that, that’s great!

A follow up question – would it be possible to show a list of events a user is registered to based on their email/the email used for the event registration?

Now that users can be bought tickets by other users it would be nice to be able to show them which they have been assigned to in some form.

Thanks, Harry.


Josh

  • Support Staff

May 12, 2016 at 8:05 am

Hi Harry,

What you can do is go to Event Espresso > Registrations > Contact List. There you can search for a contact or view a list of contacts. You click on the Contact name and below the contact info you’ll see a list table of Registrations for this Contact.


deckchairuk

May 18, 2016 at 2:29 am

Hi Josh,

Sorry for the slow reply I was working on a different project.

I was hoping their may be a frontend solution as we don’t want the users to have backend access.

Thanks, Harry.


Josh

  • Support Staff

May 18, 2016 at 1:56 pm

Thanks for clarifying. If you use the WP User Integration add-on, it adds a short code that that you can put on a page that lists out the registrations for that contact. They’ll have to be logged in to see that list, but it’s a front end page.


deckchairuk

May 19, 2016 at 2:36 am

Ah amazing, that’s what I was after.

Thanks for your help Josh 🙂

The support post ‘Custom validation messages/rules’ 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