quantumdynamix

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • quantumdynamix
    Participant

    I was able to solve this by altering the module templates to include strip_tags(tribe_get_organizer()), but this still seems like an error.

    in reply to: Cost should not requires Eventbrite ticket #271333
    quantumdynamix
    Participant

    Thanks for the link. That solved my problem.

    You may want to update the nomenclature on the plugins in the future so that the “cost” field says “Eventbrite Ticket Cost” or something specific, so that if both fields are enabled, then there isn’t any confusion.

    in reply to: How to access Ticket Start and End Dates in my Theme #76436
    quantumdynamix
    Participant

    Ok, so view the link below to see how it works. This fix uses the Woot Libraries plugin, and the code appears in the single-event.php file where you want to display your ticketing information.

    http://pastebin.com/AqP21tjh

    in reply to: How to access Ticket Start and End Dates in my Theme #76424
    quantumdynamix
    Participant

    Ok, is there a way to post code on these forums without everything breaking? It is stripping out a lot of the code I am trying to post.

    in reply to: How to access Ticket Start and End Dates in my Theme #76423
    quantumdynamix
    Participant

    Let’s try this again:

    id);
    if(!isset($saleStart)){
    $saleStart = new DateTime($productMeta["_ticket_start_date"][0]);
    }else{
    $tempStart = new DateTime($productMeta["_ticket_start_date"][0]);
    if($tempStart $saleEnd){
    $saleEnd = $tempEnd;
    }
    }
    }
    $rightNow = new DateTime('NOW');
    if($rightNow < $saleStart){
    echo "Tickets";
    echo "TICKETS NOT ON SALE YET";
    }else if($rightNow > $saleEnd){
    echo "Tickets";
    echo "TICKETS ARE NO LONGER ON SALE";
    }else{
    do_action( 'tribe_events_single_event_after_the_meta' );
    echo get_post_meta( get_the_ID(), ‘start_date’, true);
    }
    }
    ?>

    in reply to: How to access Ticket Start and End Dates in my Theme #76421
    quantumdynamix
    Participant

    FYI in case someone else is looking to do the same thing, here is what we did on the single-event.php file:

    id);
    if(!isset($saleStart)){
    $saleStart = new DateTime($productMeta[“_ticket_start_date”][0]);
    }else{
    $tempStart = new DateTime($productMeta[“_ticket_start_date”][0]);
    if($tempStart $saleEnd){
    $saleEnd = $tempEnd;
    }
    }
    }
    $rightNow = new DateTime(‘NOW’);
    if($rightNow < $saleStart){
    //tickets are not on sale yet.
    echo "Tickets”;
    echo “TICKETS NOT ON SALE YET“;
    }else if($rightNow > $saleEnd){
    //tickets are no longer on sale.
    echo “Tickets”;
    echo “TICKETS ARE NO LONGER ON SALE“;
    }else{
    //tickets are on sale now
    do_action( ‘tribe_events_single_event_after_the_meta’ );
    echo get_post_meta( get_the_ID(), ‘start_date’, true);
    }
    }
    ?>

    Hope this helps someone.

    in reply to: How to access Ticket Start and End Dates in my Theme #75924
    quantumdynamix
    Participant

    Sorry for the bump, but this is one of the last issues left to resolve on a site that we are trying to launch tomorrow. Any method for getting my page templates to access the start and end sale dates for tickets?

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