Sean

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Automatic Subscription Renewal #1463435
    Sean
    Participant

    This reply is private.

    in reply to: Automatic Subscription Renewal #1462422
    Sean
    Participant

    yes – but please walk me through the process……

    in reply to: Automatic Subscription Renewal #1461756
    Sean
    Participant

    OK – I know about this page, but still need help with unsubscribing.

    Can you please walk me through it.

    in reply to: Recurring Event – Display All not showing All in popup #1451597
    Sean
    Participant

    HI,

    We’ve rewritten this code so that it works now.

    add_filter( ‘tribe_get_recurrence_text’, ‘cwd_add_first_event_date’ );
    function cwd_add_first_event_date( $recurrence_text ) {

    $recurrence_text = '';
    
    $date_format = tribe_get_datetime_format();
    $recurrence_start_dates = tribe_get_recurrence_start_dates();
    
    foreach ( $recurrence_start_dates as $recurrence_start_date ) {
        $recurrence_start_date_formatted = date( $date_format, strtotime( $recurrence_start_date ) );
    
        $recurrence_text .= '<p>Course on ' . $recurrence_start_date_formatted . '</p>';
    }
    
    return $recurrence_text;
    

    }

    Thank you
    Sean Clarke · Clarke Design · Helping your business untangle the web
    Email:    [email protected]
    Web:     http://www.clarkedesign.co.uk
    Tel:       01270 761331

    Clarke Website Design Ltd is registered in England and Wales under company number 07324906 and our registered office is at 9 Ossmere Close, Sandbach, Cheshire CW11 1FB

    Clarke Design is a trading name of Clarke Website Design Ltd. Clarke Design operates under the Clarke Website Design Ltd Terms and Conditions

    All email communications are private and confidential to the intended addressee. If you believe you have received this email in error please delete it and inform our office at: [email protected]

    in reply to: Recurring Event – Display All not showing All in popup #1451563
    Sean
    Participant

    HI,

    This does not work correctly, as it just shows the current event date again, not the first event date for the appropriate set of events.

    [cid:[email protected]]

    Thank you

    Sean Clarke * Clarke Design * Helping your business untangle the web

    Email: [email protected]

    Web: http://www.clarkedesign.co.uk

    Tel: 01270 761331

    Clarke Website Design Ltd is registered in England and Wales under company number 07324906 and our registered office is at 9 Ossmere Close, Sandbach, Cheshire CW11 1FB

    Clarke Design is a trading name of Clarke Website Design Ltd. Clarke Design operates under the Clarke Website Design Ltd Terms and Conditions

    All email communications are private and confidential to the intended addressee. If you believe you have received this email in error please delete it and inform our office at: [email protected]

    in reply to: Recurring Event – Display All not showing All in popup #1448955
    Sean
    Participant

    Yes we do.

    If you are in one of the “not main events” and hover over the tooltip activator, then I would expect it to show the main event, as that is another available date for that family of events, that’s just obvious to us.

    If you could let us have a snippet to achieve this please that would be great.

    in reply to: Single Training Course on Multiple days #1447354
    Sean
    Participant

    For the benefit of other – I’ve completed this with a new function:

    Below is my code

    if ( function_exists( 'cwd_display_recurring_events' ) ) {
    global $post;
    echo cwd_display_recurring_events( $post );
    }

    `function cwd_display_recurring_events( $post ) {

    $return = FALSE;
    
    if ( ! tribe_is_recurring_event() ) {
        return $return;
    }
    
    if ( is_null( $post ) ) {
        return $return;
    }
    
    $date_args = array (
        'posts_per_page' =&gt; - 1,
        'post_type'      =&gt; 'tribe_events',
        'orderby'        =&gt; 'meta_value',
        'meta_key'       =&gt; '_EventStartDate',
        'order'          =&gt; 'ASC'
    );
    
    if ( $post-&gt;post_parent != 0 ) {
        $date_args['post_parent'] = $post-&gt;post_parent;
    } else {
        $date_args['post_parent'] = $post-&gt;ID;
    }
    
    $date_query = new WP_Query( $date_args );
    if ( $date_query-&gt;have_posts() ) {
    
        $date_format = tribe_get_date_format();
    
        $return      .= '<div id="tribe-events-other-dates">';
        $return      .= '<h3>Other Course Dates</h3>';
        $return      .= '<p>This course is also available on:</p>';
        $return      .= '<ul>';
    
        while ( $date_query-&gt;have_posts() ) {
            $date_query-&gt;the_post();
    
            $event_id = get_the_ID();
    
            $event_start_unix = date( 'U', strtotime( get_post_meta( $event_id, '_EventStartDate', TRUE ) ) );
    
            $event_start_time = tribe_get_start_date( $event_id, TRUE, 'ga' );
            $event_end_time   = tribe_get_end_date( $event_id, TRUE, 'ga' );
    
            $return .= '<li>' .
                       date( $date_format, $event_start_unix ) .
                       ' @ ' . $event_start_time . ' - ' . $event_end_time .
                       '</li>';
        }
    
        $return .= '</ul>';
        $return .= '</div>';
    
    }
    wp_reset_postdata();
    
    return $return . ' ';
    

    }`

    in reply to: Single Training Course on Multiple days #1446009
    Sean
    Participant

    Hi, “In that case, you could simply use the Events Calendar Pro recurring events feature and display the recurrences of the events in the single event view.” sounds great….

    But how do I do this ?

    i don’t know how to “display the recurrences of the events in the single event view.”

    in reply to: Add spinner to no of tickets required #984452
    Sean
    Participant

    The spinner is in the video on https://theeventscalendar.com/product/wordpress-wootickets/
    at about time index 1:23

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