• Resolved smlemanwebmaster

    (@smlemanwebmaster)


    Could you please provide some tips on how to add output fields to the result of #_ATTENDEESLIST.

    We activated No-User bookings and would need a simple page with selected fields for each booking. #_ATTENDEESLIST only lists the name of each booking. We would need to add other fields from each booking.

    I suppose the file to edit is attendeeslist.php
    What/how would I write to add the data of more fields (standard and custom)?

    Thank you in advance.

    https://ww.wp.xz.cn/plugins/events-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • It depends on what info you want to display. This snippet should give you some ideas: http://pastebin.com/hDhPkAWg

    Thread Starter smlemanwebmaster

    (@smlemanwebmaster)

    Thank you for your response.

    I would like to display the booking’s standard email, company, total purchase, and status fields, plus some custom fields.

    The snippet you suggested seems to produce the same identical results as the snippet in attendeeslist.php. I therefore still need some hints on where to discover the php names of the above-mentioned fields and the syntax for custom fields in php.

    Is there such documentation available?

    Thank you in advance.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    I think this feature is for EMpro – http://wp-events-plugin.com/documentation/custom-booking-forms/ and use it’s placeholder such as #_BOOKINGFORMCUSTOM{field_id}

    http://wp-events-plugin.com/documentation/placeholders/

    Thread Starter smlemanwebmaster

    (@smlemanwebmaster)

    Thank you for your response.

    I have EMpro.

    As mentioned above, on a new page, I am trying expand the output of
    [events_list]#_ATTENDEESLIST[/events_list]

    The above only returns the names of the people that have booked.
    I would like to obtain other fields also.
    I have no idea how get #_BOOKINGFORMCUSTOM{field_id} working in the shortcode above to expand the output with the field_id that I need.

    I looked at attendeeslist.php and it seems that the output is defined by
    echo ‘

    • ‘. $EM_Booking->get_person()->get_name() .’
    • ‘;

      Could you please provide advice on how to modify the php above to get the field_id values that I need?

      Thank you in advance.

    How are the fields you want to display stored? Are they part of the attendee form?

    Thread Starter smlemanwebmaster

    (@smlemanwebmaster)

    The fields I am trying to display are in the EMpro > Forms Editor.
    They are also displayed in the EM booking form displayed to visitors of the event post. I repeat that we are using No-User bookings.
    The values provided by visitors during their booking appear normally in the EM > Bookings admin pages.
    Therefore I conclude that the field data is stored by EM, which is why I wrote to this forum.

    Our goal is to be able to use as needed, on a new page, the shortcode [events_list]#_ATTENDEESLIST[/events_list] and obtain in output the fields defined in the Forms Editor beyond just the name (ex: John Doe) given for each booking.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry the forum is messed up (maybe because you put a snippet that you did not use wp code wrap?) can you repost this in a new forum instead and just add this forum link as reference ?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Adding output fields to #_ATTENDEESLIST’ is closed to new replies.