Posts Tagged ATTENDEELIST
NOTE: This is for “Version 3.1.32.P” I imagine it won’t be to different in coming versions.
Here is a post in the works about editing Event Espresso’s attendee list.
Showing Paid and non paid attendees
Normal Line for a single event is as follows posted into a page or post creating a page/post for your list of attendees
Now you want to include paid_only=”true” at the end of the line like follows
[LISTATTENDEES category_identifier="your_category_identifier" paid_only="true"]
Now that all simple but for my event I wanted to list paid and unpaid attendees so any attendees can look and double check we have their payment and all is confirmed or not.
For that you need to open “attendee_list.php” located in “yoursite\wp-content\plugins\event-espresso\templates” and find the following, I found it on line 71
$a_sql .= $paid_only == 'true'? " AND (payment_status='Completed' OR payment_status='Pending' OR payment_status='Refund') ":'';
Now this line just sets the guides for what is displayed when paid_only=”true” is used, you can see payment_status=’Completed’ OR payment_status=’Pending’ OR payment_status=’Refund in the line you can remove or edit any of these to what you like including “Incompleted”.
Now we need to separate the paid and unpaid attendees we can do this by copying the code we found and pasting it on a line below. Now we just need to edit a few parts, I chose to remove Pending and refund from the above code as they both are forms of no payment.
In the second line I used Incompleted and Pending, we also need to change the first part of the second line to $paid_only == ‘false’ instead of true, Mine is as below.
$a_sql .= $paid_only == 'true'? " AND (payment_status='Completed') ":''; $a_sql .= $paid_only == 'false'? " AND (payment_status='Incompleted' OR payment_status='Pending' OR payment_status='Refund') ":'';
Now that is done go back to your wordpress page with your attendee list on it we can add a second shortcode the same as above but change the paid to false for unpaid attendees as shown below.
Paid Attendee's [LISTATTENDEES event_identifier="avalanche-ii-3-517d28664a013" paid_only="true"] Unpaid Attendee's [LISTATTENDEES event_identifier="avalanche-ii-3-517d28664a013" paid_only="false"]
Any issues leave me a reply.