tribe_get_formatted_cost with tax

Home Forums Ticket Products Event Tickets Plus tribe_get_formatted_cost with tax

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1080159
    Jacob Masters
    Participant

    Any way to get tribe_get_formatted_cost to return all associated ticket prices with tax?

    #1080457
    Cliff
    Member

    Hi Gabba. Thanks for your question.

    Please reference this KB article and see if it can help you wanting to display tickets inclusive of tax.

    If it doesn’t, you may be able to leverage the filters fromĀ /wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php, one of which you mentioned:

    • tribe_get_cost
    • tribe_get_formatted_cost

    Please let me know if you have any follow-up questions.

    Thanks!

    #1080582
    Jacob Masters
    Participant

    can be done by creating another tickets loop on the page:

    if(tribe_has_wootickets($post_id)){
    $tickets = Tribe__Tickets__Tickets::get_all_event_tickets( $post_id );
    $totalsales = 0;
    foreach($tickets as $ticket){

    but I ended up using a javascript method, writing the ticket costs from the main tickets loop back into the page after its parsed..

    #1081008
    Cliff
    Member

    Thanks for letting me know you don’t need any further assistance with this topic. Have a great one.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘tribe_get_formatted_cost with tax’ is closed to new replies.