Event with both ticket and RSVP options displays as FREE – $8

Home Forums Ticket Products Event Tickets Plus Event with both ticket and RSVP options displays as FREE – $8

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1058127
    barback
    Participant

    The event is NOT FREE, but the RSVP option allows users to reserve a seat and pay at the door.

    Other events will have general admission at $20, Student/Senior admission at $16 and RSVP where the appropriate cost will be collected at the door.

    While it would be OK to display the cost as $16 – $20 it should NOT display FREE – $20.

    How can I modify ticket cost display to display only the highest price?

    #1058217
    George
    Participant

    Hey Barback,

    Thanks for reaching out.

    Unfortunately, at this time the only to remove this text would be to add a function like the following to your theme’s functions.php file:


    add_filter( 'tribe_get_cost', 'tribe_remove_free_text_from_cost_range', 10, 3 );

    function tribe_remove_free_text_from_cost_range( $cost, $post_id, $with_currency_symbol ) {
    return str_replace( 'Free -', '', $cost );
    }

    This works well for me and I hope it does for you, too.

    Cheers,
    George

    #1058227
    barback
    Participant

    Brilliant. Thanks!

    #1058263
    George
    Participant

    🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Event with both ticket and RSVP options displays as FREE – $8’ is closed to new replies.