Support

Home Forums Event Espresso Premium List Attendee – by event price option

List Attendee – by event price option

Posted: July 22, 2015 at 6:36 am

Viewing 3 reply threads


Andrew Moorhouse

July 22, 2015 at 6:36 am

Hi All,

Had a quick one regarding listing attendees, currently i have a page that will list all paid attendees using the following code:

[LISTATTENDEES event_identifier=”xxxxxxxx” paid_only=”true”]

What I would like to know is if there is any way I can create a short code or some other method to display the attendees in a specific price option.

Please any help would be greatly appreciated.

Regards Andrew


Dean

July 23, 2015 at 3:14 am

Hi,

I’m assuming EE3, based on the shortcode.

If so, you can copy /wp-content/plugins/event-espresso/templates/attendee_list.php to wp-content/uploads/espresso/templates.

Then you can edit it that copy and modify how the attendee list is displayed.


Andrew Moorhouse

July 23, 2015 at 3:40 am

Hi Dean,

Yes im still using EE3, i have done this and have included some of the extra data i require. I am not sure if you understand my request or if im possibly missing something. I am currently listing all paid entries in one list and have included the pricing option they have selected to the right of the name. I would like to know if its possible to have it sorted by the pricing option so that only one pricing option is displayed. If you have two pricing options of 10km Run and a second one of 21km run i would like to have them grouped in the two pricing options, all entries in the 10km Run and then below that the entries for the 21km run.

I hope its possible, please any help would be greatly appreciated.

Regards Andrew


Dean

July 23, 2015 at 4:14 am

Hi,

Yes this is possible but you will need to modify the code, possibly heavily.

For example, if you want to add a parameter, then you will need to change the the actual shortcode.

If you want to base the it on event ID or for every event, you can do it just by modifying the attendee_list.php.

I would suggest looking at the $attendees foreach (approx line 75).

This array contains an array for each attendee and includes the ticket type. So as a very basic example, you could create two foreach’s, one that checks for the 10k ticket and only outputs those and the same but for 21k races.

Here is a VERY basic example. Please only use it as guidance, not on a live site: http://pastebin.com/84TkFgmc

Viewing 3 reply threads

The support post ‘List Attendee – by event price option’ 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