Check to see if purchased product is a Ticket

Home Forums Ticket Products Event Tickets Plus Check to see if purchased product is a Ticket

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #82591
    Quentin
    Participant

    Is it possible to check whether or not a particular purchased product is a ticket item? Particularly in the context of parsing order items during the woocommerce woocommerce_order_status_completed hook? We set up autorepsonders for reminders and follow up emails for the events, and need to pass along some of the event information itself (venue and organizer), which is included in the event, but not the ticket product, would like to access this information easily so that we can pass it along to our autoresponder application.

    #82601
    Kelly
    Participant

    Hi, Quentin. Great question!

    All the tickets are set up as part of the Tickets category in WooCommerce. Will that help you at all?

    #82602
    Quentin
    Participant

    Actually, after a bit of database digging after posting my original question, I think I found a bit better answer, for anyone who may be wanting the same thing: “_tribe_wooticket_for_event” is a meta key stored for ticket products, so you can check for a value set in that meta key, and that value will be the ID of the event, which you can then just use the available tribe functions to get the necessary data you may want.

    #82605
    Kelly
    Participant

    Oh, cool. That sounds like a great solution.

    Thanks for letting us know, Quentin! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Check to see if purchased product is a Ticket’ is closed to new replies.