Support

Home Forums Events Calendar Add-on Aditional info on Attendee List

Aditional info on Attendee List

Posted: February 17, 2014 at 9:03 pm

Viewing 7 reply threads


Carlos E Castillo de las F

February 17, 2014 at 9:03 pm

Hi

I did bought the Calendar Template and is working just fine, I did add the list of attendees and that works beatifull, I just need to add 2 extra fields from the attendee form, celular and comments from the registration form, how can I do that?

TY


Tony

  • Support Staff

February 18, 2014 at 4:44 am

Hi Carlos,

How have you added the list of Attendees?

Are you using the [LISTATTENDEES] shortcode?


Carlos E Castillo de las F

February 18, 2014 at 9:06 pm

espresso-template-calendar-table%2Findex.php

<td class=”td-event-info”><span class=”event-title”>“><?php echo stripslashes_deep($event->event_name); ?></span>
<p>
<?php _e(‘Cuando:’, ‘event_espresso’); ?>
<?php echo event_date_display($event->start_date); ?><br />
<?php _e(‘Donde:’, ‘event_espresso’); ?>
<?php echo stripslashes_deep($event->venue_address.’, ‘.$event->venue_city.’, ‘.$event->venue_state); ?><br />
<?php _e(‘No show ‘, ‘event_espresso’); ?>
<?php echo $org_options[‘currency_symbol’].$event->event_cost; ?> </p>
<?php echo espresso_format_content(array_shift(explode(‘<!–more–>’, $event->event_desc))); //Includes <p> tags ?></td>
<td class=”td-event-register”><?php echo $live_button ?></td>

<td class=”td-event-register”><?php echo do_shortcode(‘[LISTATTENDEES event_id=”‘.$event->id.'” type=””]’);?></td>
</tr>
<?php
^**^*^*^*^*^*^*^*^*^*^*^*^*^^*^*^*^*^*^*

So, how can I add the celular and the comments of those reservations?


Tony

  • Support Staff

February 20, 2014 at 4:21 am

Hi Carlos,

As you are using the [LISTATTENDEES] shortcode, this line:

<?php echo do_shortcode(โ€˜[LISTATTENDEES event_id="'.$event->id.'" type=""]โ€˜);?>

You can edit the template to include custom questions.

If you open event-espresso/templates/attendee_list.php you can see how the output fo that shortcode is constructed.

Notice on line 87 you have this line:

//$custom_question_1 = '<br />'.do_shortcode('[EE_ANSWER q="12" a="'.$id.'"]');

Either uncomment that line, or copy & paste it above and uncomment it so you end up with:

$custom_question_1 = '<br />'.do_shortcode('[EE_ANSWER q="XX" a="'.$id.'"]');

You need to change XX to the ID of your custom question (you can view this within Event Espresso -> Questions)

Then just include $custom_question_1 on line 91 like so:

<li class="attendee_details"> <span class="espresso_attendee"><?php echo $gravatar ?><?php echo stripslashes_deep($fname . ' ' . $lname) . $city_state . $custom_question_1 . '</p>'; ?> </span>

Add spaces/formatting to the output as needed.

Does that help? ๐Ÿ™‚


Carlos E Castillo de las F

February 20, 2014 at 1:56 pm

ok almost there

I did set up:
<li class=”attendee_details”> <span class=”espresso_attendee”><?php echo $gravatar ?><?php echo stripslashes_deep($fname . ‘ ‘ . $lname . ‘ ‘ . $custom_question_1 . ‘ ‘ .$custom_question_2) . $city_state .'</p>’; ?> </span>

And it brings the info but now how can I set it up to fit on the same row because custom 1 takes one row and custom 2 another?

Thank you


Sidney Harrell

February 20, 2014 at 9:28 pm

Can you give a link to where you have it set up?


Carlos E Castillo de las F

February 21, 2014 at 5:29 pm

Sure

http://appsconectius.com/CCM_Vip


Tony

  • Support Staff

February 24, 2014 at 3:20 am

Hi Carlos,

Its likely me, but I can’t see anywhere that would be using the code mentioned from the link provided?

You you link directly to the page with the code in question please?

Viewing 7 reply threads

The support post ‘Aditional info on Attendee List’ 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