Marcus

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Before and After Tickets go on Sale #235903
    Marcus
    Participant

    @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 );

    in reply to: Displaying Today's Events (Including Recurring Ones) #80589
    Marcus
    Participant

    A 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.

    in reply to: Displaying Today's Events (Including Recurring Ones) #80125
    Marcus
    Participant

    Thanks 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.

    in reply to: Attendees Export CSV – Custom Fields #80124
    Marcus
    Participant

    Thanks 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.

    in reply to: Attendees Export CSV – Custom Fields #79899
    Marcus
    Participant

    Thanks 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?

    in reply to: Displaying Today's Events (Including Recurring Ones) #78640
    Marcus
    Participant

    Hmm, that didn’t post a lot of the code, but you can see the important parts, where the query is formed.

    in reply to: Before and After Tickets go on Sale #78638
    Marcus
    Participant

    Thanks, 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.”

    in reply to: WP Query for Individual Venue #78398
    Marcus
    Participant

    In 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.html

    Specifically, here’s how I setup the query the above situation:
    $wp_query = TribeEventsQuery::getEvents( array(‘venue’ => 1384, ‘eventDisplay’ => ‘upcoming’, ‘posts_per_page’ => 5 ), true );

    in reply to: WP Query for Individual Venue #78394
    Marcus
    Participant

    Okay, I take it this seemingly-simple request is beyond this plug-in’s capabilities. Thanks.

    in reply to: WP Query for Individual Venue #78228
    Marcus
    Participant

    Thanks 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?

    in reply to: List View Ajax Difficulties #75143
    Marcus
    Participant

    I 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)!

    in reply to: List View Ajax Difficulties #74757
    Marcus
    Participant

    Thanks 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.

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