Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter kdunham

    (@kdunham)

    Frustratingly took forever to find the solution, but thank you for having one. For those of us who can’t or don’t want to sell the tickets online but need a way to capture names/email address so invoices can be sent, Event Tickets Plus would be overkill. Out of the box, the free version removes the ability to add a price. This was the solution.
    https://theeventscalendar.com/knowledgebase/use-the-event-cost-field-with-tickets-installed/

    Thread Starter kdunham

    (@kdunham)

    This actually isn’t working. The ability to set a price appears in the backend when you create/edit an event. But even though I’ve put a price in the “EVent Cost” area, it still comes up as “Free” when the event is displayed on the front end. Please help!

    Same problem… If it was intentional, I have to given to the developers, it’s an excellent prank.

    Hey folks,

    Sorry for the delay in our reply!

    I’m not seeing the same as when doing this simple test:

    – Activate latest version of The Events Calendar and Event Tickets.
    – Add the snippet to show the price field.
    – Create a new event with cost set to $10 and a RSVP ticket.
    – Verify that on the front-end the price range is correctly shown: Free – $10.

    If you want to completely remove the Free part, you can use this code:

    /* Force the use of the cost field of event and ignore tickets price */
    function tribe_just_show_price_field ( $cost, $post_id, $with_currency_symbol ) {

    $cost_utils = Tribe__Events__Cost_Utils::instance();
    $cost = tribe_get_event_meta( $post_id, '_EventCost' );

    if ( $with_currency_symbol ) {
    $cost = $cost_utils->maybe_format_with_currency( $cost );
    }

    return $cost;
    }

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

    Please let us know if this works as expected,
    Best,
    Nico

    Hello – where do I add this code to hide “Free -” when my event has a price?
    Plugins: The Events Calendar, Event Tickets

    /* Force the use of the cost field of event and ignore tickets price */
    function tribe_just_show_price_field ( $cost, $post_id, $with_currency_symbol ) {
    
    $cost_utils = Tribe__Events__Cost_Utils::instance();
    $cost = tribe_get_event_meta( $post_id, '_EventCost' );
    
    if ( $with_currency_symbol ) {
    $cost = $cost_utils->maybe_format_with_currency( $cost );
    }
    
    return $cost;
    }
    
    add_filter( 'tribe_get_cost', 'tribe_just_show_price_field', 10 , 3 );
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Event Pricing Disappears’ is closed to new replies.