Forum Replies Created

Viewing 3 replies - 31 through 33 (of 33 total)
  • Thread Starter michaely50

    (@michaely50)

    David
    I think I understand
    Does the SESSION ID still exist when this hook is called
    ‘seamless_donations_paypal_ipn_processing_complete’. So far no success here.

    If not what is the best hook to use?

    If this is not going to work then is there a hook that takes the donation PostID as input and hence get the SessionID from post_meta.Looks like the PostID for the fund is not in the meta (Just the name) so I still need to go to the audit table ??
    Appreciate your thoughts and support
    Regards
    Michael

    Thread Starter michaely50

    (@michaely50)

    David
    I tried
    if( isset( $_GET[‘session’] ) ) {
    $session_id = $_GET[‘session’]; }
    (as per your excellent video) but the table did not update

    I hard coded a $session_id to test the rest of the query and this worked fine
    Am I missing something. Thanks for your help
    Michael

    Thread Starter michaely50

    (@michaely50)

    I never thought I would be sharing WordPress code. I took up Barry’s challenge and learnt a lot (steep learning).
    I created a tribe-events folder in my theme folder
    created a file rsvp-form.php and copied the original file contents into this
    I added the code below which is a copy of the attendees code in the file with calls for non attendees.I did not cater for anonymous attendees in this code
    It did the job. I am sure there are better ways
    Hope that helps
    Michael

    <?php
    // Repeat for apologies. My Code
    $confirmed = $attendance->count_total_negative_responses();
    $count_text = sprintf( _n( ‘(%d apology)’, ‘(%d apology)’, $confirmed, ‘eventrocket’ ), $confirmed );
    printf( __( ‘Apology list %1$s %2$s %3$s’, ‘eventrocket’ ), ‘<i>’, $count_text, ‘</i>’ );
    ?> </h5>

    <?php if ( 0 === $confirmed ): ?>
    <p> <?php _e( ‘No confirmations so far.’, ‘eventrocket’ ) ?> </p>
    <?php else: ?>
    <?php
    $anon_confirmations = $attendance->count_negative_anon_responses();
    ?>

      <?php if ( $anon_confirmations > 0 ): ?>

    • <?php printf( _n( ‘%d anonymous attendee’, ‘%d anonymous attendees’, $anon_confirmations, ‘eventrocket’ ), $anon_confirmations ) ?>
    • <?php endif ?>

      <?php foreach ( $attendance->list_authed_negatives( true ) as $user ): ?>

    • <?php echo esc_html( $user->display_name ) ?>
    • <?php endforeach ?>

    <?php endif // if we have confirmed attendees ?>
    <?php endif // if show_attendees is enabled ?>
    <?php endif // if the user is logged in ?>

Viewing 3 replies - 31 through 33 (of 33 total)