Pablo

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Pablo
    Participant

    Same problem, I only see avatars.

    Pablo
    Participant

    Hi Jennifer, I just copy you said below your code, like this:

    <!-- Ateendees -->
    	<ul class='tribe-attendees-list'>
    <?php if( class_exists( Tribe__Tickets_Plus__Attendees_List ) ) {
     
        $attendees_list = Tribe__Tickets_Plus__Attendees_List::get_attendees( $event_id );
     
        foreach ( $attendees_list as $attendee_id => $avatar_html ) { ?>
            <li class='tribe-attendees-list-item'><?php echo $avatar_html; ?></li>
        <?php }
    } ?>
    </ul>
    
    <br>
    <h3>NEW CODE (BELOW) Do not show names only avatars</h3>
    <ul class='tribe-attendees-list'>
    	<?php foreach ( $attendees_list as $attendee_id => $avatar_html ) { ?>
    		
    		<?php
    		$attendee_name = '';
    		foreach ( $attendees as $key => $attendee_obj  ) {
    			if ( isset( $attendees[ $key ]['attendee_id'] ) && $attendee_id == $attendees[ $key ]['attendee_id'] ) {
    				$attendee_name = $attendees[ $key ]['purchaser_name'];
    			}
    		} ?>
    
    		<li class='tribe-attendees-list-item'>
    			<?php echo $avatar_html; ?>
    			<?php if ( ! empty( $attendee_name ) ) : ?>
    			<br>
    			<span class="tribe-attendees-list-item-name">
    				<?php echo $attendee_name; ?>
    			</span>
    			<?php endif ?>
    		</li>
    	<?php } ?>
    	</ul>
    <!-- Ateendees END -->
    

    And names not show 🙁

    Pablo
    Participant

    Hi Jennifer, works great!!! Thanks a lot!! only one more question… can I change avatar with attendee name??

    Thanks in advance!!!

    Pablo

    Pablo
    Participant

    Hi again Jennifer, any answer?

    Thanks in advance,

    Pablo

    in reply to: Incorrect tickets left count #1387978
    Pablo
    Participant

    Hi Jaime for your answer, I probably explain me wrong (my english!!). When you load the first time a event page the number of tickets left it´s ok, but if you click on one to select the number in all tickets type change it and show wrong results.

    Please see attached file.

    in reply to: Incorrect tickets left count #1387158
    Pablo
    Participant

    This reply is private.

    Pablo
    Participant

    This reply is private.

    Pablo
    Participant

    This reply is private.

Viewing 8 posts - 1 through 8 (of 8 total)