Support » Plugin: Events Made Easy » eme_eval_booking_form_filter, more than one validation rule for one field

  • Resolved Uobet

    (@uobet)


    Hi Franky,

    I hope you can help me in this specific case.

    I have three different categories of multi-booking events where I would have to check the age of booking people (children). At present I am using the same booking form templates for all three categories, unfortunately the accepted age range is different for the three categories.

    Do you have and idea where I could find “a hook” (in my case the hook would be the category of the Event, but maybe there is also a way of defining some kind of dummy field?) for the eme_eval_booking_form_filter to validate the three Validation rules, without having to define three different forms with three different fields.

    Thank you

    S

    https://wordpress.org/plugins/events-made-easy/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Franky

    (@liedekef)

    You can use the function eme_get_event_category_names($event_id) to get the category names for an event, or eme_get_event_categories($event_id) to get an associative array of the catogories for an event.
    Then you can add the logic based on categories in your discount code.

    Thread Starter Uobet

    (@uobet)

    Thank you, I am going to try…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘eme_eval_booking_form_filter, more than one validation rule for one field’ is closed to new replies.