Home › Forums › Ticket Products › Event Tickets Plus › Display on tickets sold the start and end time
- This topic has 8 replies, 3 voices, and was last updated 9 years, 11 months ago by
Support Droid.
-
AuthorPosts
-
May 3, 2016 at 11:35 am #1110169
Benjamin
ParticipantHi,
I don’t have the end time of the event on the ticket, just the start time?
May 4, 2016 at 7:13 am #1110428Brook
ParticipantHowdy 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
May 5, 2016 at 12:18 am #1110852Benjamin
ParticipantHey 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?May 5, 2016 at 6:49 am #1110948Brook
ParticipantHowdy 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
May 8, 2016 at 2:01 pm #1112047Benjamin
ParticipantHey 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?
May 9, 2016 at 4:46 pm #1112440Brook
ParticipantExcellent! 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
May 9, 2016 at 4:48 pm #1112444Benjamin
ParticipantHey 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
May 9, 2016 at 11:44 pm #1112548Brook
ParticipantInteresting. 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
May 24, 2016 at 9:35 am #1118281Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Display on tickets sold the start and end time’ is closed to new replies.
