Forum Replies Created
-
AuthorPosts
-
August 13, 2014 at 3:32 pm in reply to: tribe_get_organizer() Returns Link Instead Of Just The Organizer's Name #660810quantumdynamixParticipant
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.
quantumdynamixParticipantThanks 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.
November 14, 2013 at 6:57 am in reply to: How to access Ticket Start and End Dates in my Theme #76436quantumdynamixParticipantOk, 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.
November 14, 2013 at 6:32 am in reply to: How to access Ticket Start and End Dates in my Theme #76424quantumdynamixParticipantOk, 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.
November 14, 2013 at 6:30 am in reply to: How to access Ticket Start and End Dates in my Theme #76423quantumdynamixParticipantLet’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);
}
}
?>November 14, 2013 at 6:28 am in reply to: How to access Ticket Start and End Dates in my Theme #76421quantumdynamixParticipantFYI 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.
November 12, 2013 at 3:26 pm in reply to: How to access Ticket Start and End Dates in my Theme #75924quantumdynamixParticipantSorry 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?
-
AuthorPosts