Ticket price field is missing

Home Forums Welcome! Pre-Sales Questions Ticket price field is missing

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1124963
    Torsten
    Guest

    Hello support-team,

    as long as I just installed “The Events Calender” plugin I have a field with price for the event, but as soon as I activate the plugin “Event Tickets” this field disappears, but it shows the price on the website I first set.

    I’d like to buy “Event Tickets Pro” for selling tickets, but I want to be sure, that the price field is there πŸ˜‰

    I’m looking forward to your answer.
    Torsten

    #1124977
    Nico
    Member

    Hi there Torsten,

    Thanks for reaching out and for your interest in our products πŸ™‚

    Take a look to this Knowledge base article: Use the Event Cost field with Tickets installed. This will add the field back and also use the cost from tickets. If you want to completely override the value of tickets with the cost field then you can use this snippet:


    /* 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 );
    ​
    /* activate event cost field when using event tickets */
    add_filter( 'tribe_events_admin_show_cost_field', '__return_true', 100 );

    Please let me know if this answers your question,
    Have a great weekend,
    Nico

    #1125006
    Torsten
    Guest

    Thank you Nico for your fast support πŸ™‚

    #1125083
    Nico
    Member

    Hey you are welcome Torsten!

    I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Ticket price field is missing’ is closed to new replies.