Display on tickets sold the start and end time

Home Forums Ticket Products Event Tickets Plus Display on tickets sold the start and end time

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1110169
    Benjamin
    Participant

    Hi,

    I don’t have the end time of the event on the ticket, just the start time?

    #1110428
    Brook
    Participant

    Howdy Benjamin,

    I would love to help you with this. This is totally doable with a simple theme override.

    Have you ever created a theme override before? If not checkout our Themer’s Guide for a nice walkthrough. With that knowledge in hand create an override for public_html/wp-content/plugins/event-tickets/src/views/tickets/email.php . On around line 277 you will see:

    $start_date = tribe_get_start_date( $event, true )

    Replace that with this:

    $start_date = tribe_events_event_schedule_details( $event );

    And you’re done! That will show the full event details instead of just the start date. Did that do what you wanted?

    Cheers!

    – Brook

    #1110852
    Benjamin
    Participant

    Hey Brook,

    Thanks for that, but the code you gave me doesn’t work, in fact, it maked my website stop sending tickets by email…
    An other solution?

    #1110948
    Brook
    Participant

    Howdy Benjamin,

    That definitely should work. I tested the code myself, and just retested it.

    I did notice one thing in my instructions that might have been confusing if you’re not familiar with PHP. I said replace this:

    $start_date = tribe_get_start_date( $event, true )

    But I really meant replace that line. So it would include the ending semi-colon. To be clear, replace this:

    $start_date = tribe_get_start_date( $event, true );

    with this:

    $start_date = tribe_events_event_schedule_details( $event );

    And you should be golden. Sorry for the confusion. Did that work? If that did not work, try enabling WP_DEBUG and setting WP_DEBUG_LOG to true as well. What do those logs show when you try to send an email?

    Cheers!

    – Brook

    #1112047
    Benjamin
    Participant

    Hey thanks Brook! It’s finally working… 😉

    Also, I tried to put this in Child theme, but can’t succeed. When the plugin will be update, will it change this again?

    #1112440
    Brook
    Participant

    Excellent! Happy we were able to get to the bottom of that.

    Good question. If you created a theme override in your parent theme them it will disappear when you update that theme. Some themes rarely if ever have updates though so this is not always a problem. I know Child Themes can be a bit of a pain. But, it might be worth taking another whack at it if you do update your theme a lot.

    Let me know if you have any more questions. Thanks for getting back!

    – Brook

    #1112444
    Benjamin
    Participant

    Hey thanks! 😉

    Yeah, tried to put this in my child theme (on Avada), with the good path to the file + copy of a file, but doesn’t work…

    Anyway, I will try again!
    Thanks for your help… 😉

    Ben

    #1112548
    Brook
    Participant

    Interesting. Off the top of my head I do now know what the problem could be. There are so many small things that can go wrong in web design. Hopefully Once you give it another whack it will work better.

    • Brook
    #1118281
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Display on tickets sold the start and end time’ is closed to new replies.