Forum Replies Created
-
AuthorPosts
-
MarcusParticipant
@efeqdev — In wootickets/tickets.php, near the bottom:
—
if ( $is_there_any_product ) {
[the title, $contents, and submit button]
} else {
echo ‘Tickets for this event are not on sale at this time.’;
}
—
For that last line, in your case, you could say:
echo “Online sales have ended. Tickets are available at the box office for ” . $this->get_price_html( $product );December 6, 2013 at 1:02 pm in reply to: Displaying Today's Events (Including Recurring Ones) #80589MarcusParticipantA sidenote, Barry: When searching for the solution for this and other questions, here’s the 2.X documentation I kept running into:
https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/
It’d be great to have a collection of these kind of general functions for 3.X posted somewhere.December 4, 2013 at 7:48 am in reply to: Displaying Today's Events (Including Recurring Ones) #80125MarcusParticipantThanks for sharing, Tim. I’d also noticed that much of the helpful documentation I found online applied only to version 2.1. While your code doesn’t quite come through on this forum, I believe I did something similar where I looped through a number of entries and used tribe_get_start_date to compare against current time. It’s putting the system through some extra paces, but it’s all I could figure out as well.
MarcusParticipantThanks for the tips, Barry. I also noticed a lot of WooTickets requests on freelancer.com. While not as direct as your feature requests forum poll, I imagine monitoring these marketplaces would also be a good place to find some indirect input.
MarcusParticipantThanks for your response, Barry. I’m sorry to hear that, though this still remains to be a major issue with the client. If I were looking to bid out this job, is there a particular service or list of services you could recommend?
November 26, 2013 at 6:47 am in reply to: Displaying Today's Events (Including Recurring Ones) #78640MarcusParticipantHmm, that didn’t post a lot of the code, but you can see the important parts, where the query is formed.
MarcusParticipantThanks, Kelly.
That approach does sound a little tricky and costly. While it’s not exactly what I had in mind, I modified the wootickets/tickets.php view to simply count the number of available ticket posts it came back with. If it’s one or more, it displays, but if none are available, it echoes “Tickets are not currently on sale for this event.”MarcusParticipantIn case anyone else is having this problem, I did figure out the solution by dissecting the existing Tribe Events Pro class files. The easiest way to form this query is by using the TribeEventsQuery::getEvents method, documented here:
http://docs.tri.be/Events-Calendar/class-TribeEventsQuery.htmlSpecifically, here’s how I setup the query the above situation:
$wp_query = TribeEventsQuery::getEvents( array(‘venue’ => 1384, ‘eventDisplay’ => ‘upcoming’, ‘posts_per_page’ => 5 ), true );MarcusParticipantOkay, I take it this seemingly-simple request is beyond this plug-in’s capabilities. Thanks.
MarcusParticipantThanks for the suggestion! Perhaps I’m using it wrong, but it seems “tribe_venue” has no affect on the query, whether I use a venue’s slug or its ID like so:
$wp_query->query(‘posts_per_page=5’.
‘&post_type=tribe_events’.
‘&tribe_venue=art-studio’
);or:
$wp_query->query(‘posts_per_page=5’.
‘&post_type=tribe_events’.
‘&tribe_venue=1384’
);Either query just returns the next five upcoming events regardless of venue, as opposed to just the ones appearing in the “art-studio” venue. Am I doing something wrong here, or is this not the right way to go about it?
MarcusParticipantI had to check back, your last suggestion set off a light bulb and I modified my approach on isolating the problem. I’ve found the unlikely culprit: A Formstack form-generating javascript in my footer which creating a conflict this whole time, but not throwing errors. That thing has been nothing but trouble.
In any case, thanks for your help in reaching a solution (as obscure as is was)!
MarcusParticipantThanks for getting back with the suggestion. I’ve gone so far as to strip everything out except the jquery and Tribe javascript, any extras out of the header and footer, leaving the default Tribe template, and it still doesn’t take within that “theme.”
It’s hard to pin down within the general chaos of WordPress, so it looks like I’ll be writing my own nav, bypassing the ajax with php generated links.
-
AuthorPosts