Show event dates for product on that Woocommerce product's detail page

Home Forums Ticket Products Event Tickets Plus Show event dates for product on that Woocommerce product's detail page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1337611
    Gary Newton
    Participant

    I’d prefer to go a slightly different direction than https://theeventscalendar.com/knowledgebase/selling-tickets-from-the-woocommerce-products-page/. That post, if I’m reading it correctly, uses the Event Page as the “product “detail,” so to speak. We have Event Calendar (not Pro) and Event Tickets Pro.

    We sell courses (a Woocommerce Product sku). We use a custom Woocommerce product detail page template to describe the course, it’s benefits, what you’ll learn, several other custom attributes, etc. I’d like the make that template list all the dates (events name, event date, event venue [ideally allow user to filter by venue]) that the specific course (woocommerce product sku) is scheduled for (e.g. Course ABC, a 2-day course, is scheduled for Sept 2-3, New York City, Sept. 23-24, Jersey City NJ, Oct. 9-10, Sacramento CA, etc). Click on a date to go to the Event Page and see what tickets are available for that date and Add to Cart from there. It’s sort of a Movie ticket metaphor: read about the movie in general to see if it’s of interest, see what theaters and dates are available, purchase tickets for the time you want.

    The Event Calendar Shortcodes filters by category, but I really need the template to filter at the SKU level to constrain events to the specific product being displayed on the woocommerce product detail page. Event Tickets Plus links Event to Product via Ticket, so the data is there, of course. Which angle would you suggest I approach this from?

    #1338385
    Cliff
    Member

    Hi, Gary. Thanks for your detailed request.

    I think you’d need to use both tribe_get_events() and maybe then using the tribe_event_inline shortcode to display each of the found events’ data.

    You’d put that shortcode in your custom Product template and then run it through do_shortcode()

    As far as the query to send to tribe_get_events(), you’d be in the “custom coding” realm there. If you have a code snippet you want to run past me, please share it.

    If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.

    Please let me know how this goes for you.

    #1348163
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Show event dates for product on that Woocommerce product's detail page’ is closed to new replies.