Viewing 7 replies - 1 through 7 (of 7 total)
  • this code #_ATT{Language}{English|German|Spanish|Italian} should be added in settings > general > general options > Event Attributes then to use it in the frontend you can use #_ATT{Language}

    https://wp-events-plugin.com/documentation/event-attributes/

    Thread Starter shivopaya

    (@shivopaya)

    Thanks agelonwl.

    I did add this code #_ATT{Language}{English|German|Spanish|Italian} to Event Attributes. and when im opening a new event i see it on the admin page.

    How do i make it show on the booking form ? i still cant figure it out from here https://wp-events-plugin.com/documentation/event-attributes/

    Please advice.

    Thanks,
    Ron.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    That won’t show on a booking form, it’s specific to event forms. To create custom fields, either you have to edit the booking form templates within templates folder or alternatively, pro has a booking form editor you can add stuff like this.

    Thread Starter shivopaya

    (@shivopaya)

    Thanks,

    I was able to add a field to the form by editing the booking-fields file.
    I have added this line :
    p>

    <label for=’dbem_language’><?php _e(‘Language’,’dbem’) ?></label>

    <input type=”text” name=”dbem_language” id=”dbem_language” class=”input” <?php if(!empty($_REQUEST[‘dbem_language’])) echo “value='{$_REQUEST[‘dbem_language’]}'”; ?> />

    </p>

    but for some reason i cant see it on the bookings page or on the email sent to me, after i make a booking.

    How do i add it there ?

    Thanks,
    Ron.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    you also have to hook into specific sections of the booking creation process to add your fields to the booking objects, otherwise EM ignores it.

    the hooks you want are em_event_get_post and em_event_save. If you save it within $EM_Event->attributes e.g. during em_event_get_post, it’ll save it automatically.

    Thread Starter shivopaya

    (@shivopaya)

    Thanks,

    But im a bit lost.

    Can you explain it in more details ? or point me to the relevant manual ?

    Thanks!
    Ron.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    We don’t have docs for this, it’s pretty technical so if you don’t know how, you’ll need to hire a developer.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Events Manager] Add field to booking form’ is closed to new replies.