Display ticket cost in event list

Home Forums Ticket Products Event Tickets Plus Display ticket cost in event list

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #48236
    Bradley Pirman
    Participant

    Good afternoon Tri.be team!
    We’ve got wootix and EC pro and we’d like to use get_price_html() and get_stock_quantity() in our event list.
    We only have one ticket per event (charter aircraft flights)

    Any tips?

    #48332
    Barry
    Member

    I don’t believe there are any handy template tags for this but you could certainly add a snippet to your theme’s functions.php file to help obtain ticket/product data per event.

    Then, in your list.php template you could add a short piece of code to print out the prices or any other bits of product data. You could for instance position this right before the end of the content block, which is marked by this line:

    </div> <!-- End tribe-events-event-entry -->

    It’s a fairly minimal example that you will probably want to dress up a little but hopefully it gives the basic idea.

    #48821
    Barry
    Member

    Does that answer your questions Bradley?

    #48887
    Bradley Pirman
    Participant

    Hi Barry, yes, thanks!
    We were able to use the sample snippets you sent to architect what we needed for the event list. I think you guys will like what we’re working on. We’ll have to show it off to you when we’re finished…we’d love some feedback 😉
    Thanks again!
    /Bradley

    #48896
    Barry
    Member

    Excellent: we’re certainly keen to collate a collection of great examples of WooCommerce in practice and have a (currently empty 🙁 ) sticky thread for that: https://theeventscalendar.com/support/forums/topic/made-something-youre-proud-of/

    Great to hear you’re on track 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Display ticket cost in event list’ is closed to new replies.