How to get ticket price in the loop?

Home Forums Ticket Products Event Tickets Plus How to get ticket price in the loop?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1466941
    otherness
    Participant

    Hello I have created a query to show the events, I can show the event name, date, venue, organizer etc, but I can’t work out how t show the ticket price.

    How can I echo the ticket price?

    I tried using the code below, but it shows FREE for all tickets…
    get_price_html( $product );
    } else {
    esc_html_e( 'Free', 'event-tickets-plus' );
    } ?>

    • This topic was modified 8 years, 1 month ago by otherness.
    #1468000
    Andras
    Keymaster

    Hi otherness and welcome to the forums!

    I take it you are submitting the proper ticket ID in $product.

    The first line of your if statement is missing here, so I cannot say for sure what is happening there.

    Do you get the price if you totally omit the if statement and you only put

    get_price_html( $product );

    Please also note that the parameter is deprecated according to the WooDocs.

    Andras

    #1487714
    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 ‘How to get ticket price in the loop?’ is closed to new replies.