Show fixed price

Home Forums Ticket Products Event Tickets Plus Show fixed price

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1536854
    Henning
    Participant

    Hi there!
    I need to have “Eintritt: 3€” shown, but can’t get it right when using the single-event.php from events.

    http://piccolino.3t-design.de/event/piccolino-5-8-in-bremen?tickets_process=#buy-tickets

    When I edit it, it’ll show 3€ and the buy button, but all the rest is gone…

    Anybody got the right lines of code for me?

    #1536905

    Hi Henning,

    Thanks so much for reaching out!

    You can try using the following snippet to change the wording there:

    add_filter( 'tribe_get_cost', function( $cost ) {
    return str_replace( 'Free - ', '', $cost );
    } );

    Let me know if that helps!

    Thanks,
    Jaime

    #1537403
    Henning
    Participant

    Hi Jaime!

    Thanks for the code! This goes into the single-event.php? Do I place it after

    do_action( 'tribe_events_inside_cost' )
    		?>
    #1537809

    Hi Henning,

    You can add this to your theme’s functions.php file.

    Let me know how it goes!

     

    Thanks,

    Jaime

    #1538353
    Henning
    Participant

    Nope, that didn’t do it :-/

    See for yourself:
    http://piccolino.3t-design.de/event/piccolino-5-8-in-bremen

    #1538640

    Hi Henning,

    In other words, are you looking for the field to look like this?

    Eintritt:
    3€

    Let me know!

    Thanks,
    Jaime

    #1538664
    Henning
    Participant

    Exactly 🙂

    #1538979

    Hi Henning,

    You can apply the following snippet in the functions.php file of your theme (without the PHP tag at the top) as a starting point: https://gist.github.com/GeoffEW/69f8a033fb614c78b3de45a197431135

    What this will do is display whatever value you input in the event cost field and disregard the ticket prices.

    Let me know if that helps!

     

    Thanks,

    Jaime

    #1539141
    Henning
    Participant

    *thumbsup*

    Problem solved 🙂

    #1540593

    Glad we could help, you are welcome back in our support forums any time!

    Since you marked this thread as Resolved, I am going to close this thread.

    Have a great week!

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Show fixed price’ is closed to new replies.