Home › Forums › Ticket Products › Event Tickets Plus › How to show the ticket sales end date into the event.
- This topic has 13 replies, 4 voices, and was last updated 7 years, 7 months ago by Gergana.
-
AuthorPosts
-
August 25, 2016 at 12:16 am #1155672GerganaParticipant
Hello,
We have tickets with different active sale time (Ex. Early bird, Normal etc) Is there a way how to show somewhere into the event the end date of the sales of the tickets?
Thank you in advance!August 25, 2016 at 11:06 am #1155954NicoMemberHi there Gergana,
Thanks for getting in touch!
Sure this is possible with a template override of the tickets form (the themer’s guide has more info on that). Can you please tell me which type of tickets you are offering (RSVP, Woo, etc?)? This way I can guide you through the process.
Best,
NicoAugust 25, 2016 at 11:27 am #1155969GerganaParticipantHi We are using the Event Ticket plus tickets(they are with a price). If I understood you correct than I believe we are using Woo.
########The closed topic######
About the other discussion which was closed the topic is different than this one.https://theeventscalendar.com/support/forums/topic/how-to-include-into-the-ticket-the-end-date-of-t/ but it seems the title isn’t finished.
I need for the closed topic the way how to implement the end date of the event. In other words – To place the end date into the (Ticket) . In the snapshot which are attached here is one ticket. Under the title is the start date. I want to show here also the end date of the event. To be something like this:Start date – End date
Thank you.
August 25, 2016 at 1:26 pm #1156031GerganaParticipantHello Nico All,
Shall I reopened the topic which was closed by you?
And want to describe more about this topic.
We want to make each ticket to have the end date until which(the current ticket example Early bird) will be active.
Thanks again.August 25, 2016 at 8:54 pm #1156192NicoMemberHi there Gergana thanks for the follow-up!
Hi We are using the Event Ticket plus tickets(they are with a price). If I understood you correct than I believe we are using Woo.
I meant which e-commerce platform are you using alongside Event Tickets Plus. Basically the plugin that manages the cart and checkout. Is it WooCommerce?
I’m really sorry about the other issue, it really seemed to be a double post 🙁 We can totally solve this issue here to after we get the original one nailed.
Please let me know about the e-commerce plugin and I’ll send the steps to create the template override,
Best,
NicoAugust 25, 2016 at 11:16 pm #1156211GerganaParticipantHi Nico,
I missunderstood your question. We are using Woocommerce for e-commerce plugin.
August 29, 2016 at 10:34 am #1157159GerganaParticipantHi,
Is there an update of this topic. Thank you in advance!August 29, 2016 at 7:16 pm #1157367NicoMemberHi there Gergana,
Sorry for the delay in my reply. We don’t work on weekends so generally Mondays are quite busy!
So first thing to do is create a template override (check our themer’s guide if you are not sure about this) of the file: wp-content/plugins/event-tickets-plus/src/views/wootickets/tickets.php.
Once the copy of the file is placed on wp-content/themes/your_theme/tribe-events/wootickets/tickets.php, add the following code at line 98:
...
echo '<td class="tickets_description">';
echo $ticket->description;// print the sales end date if it's defined
if ( !empty($ticket->end_date) ) echo '<br>Sales end: ' . $ticket->end_date;echo '</td>';
...
This will print the end sales date in the description column if it’s defined. It’s just a basic sample and you’ll probably need to customize it a bit to suit your needs.
Please give a try and let me know if it works for you,
Best,
NicoSeptember 5, 2016 at 5:45 am #1159948GerganaParticipantThanks Nico,
This is working great! It is absolutely what I need.
I am trying now to understand the logic how to include also the end date of the event inside the ticket itself, but it is without success. Could you please give me directions or if you know how to include this to share it with me.
Thank you in advance!September 5, 2016 at 7:54 am #1159985NicoMemberGlad to hear Gergana 🙂
I am trying now to understand the logic how to include also the end date of the event inside the ticket itself
You mean the tickets email? If not please clarify and I’ll be glad to help you on this as well!
Best,
NicoSeptember 5, 2016 at 12:12 pm #1160097GerganaParticipantHi Nico
Correct. I have attached the ticket. I am trying to include the end date of the Event itself there in the hand written text inside the snapshot. : )
Thank you!September 6, 2016 at 7:23 am #1160309NicoMemberThanks for confirming!
For this you’ll need to create a template override of the tickets email (wp-content/plugins/event-tickets/srv/views/tickets/email.php). Once the override is in the theme folder in the corresponding path, just change lines 277 of the file:
// change this:
$start_date = tribe_get_start_date( $event, true );// to this
$start_date = tribe_get_start_date( $event, true ) . ' - ' . tribe_get_end_date( $event, true );
That should be it, make a test purchase and let me know if it works as expected 🙂
Best,
NicoSeptember 28, 2016 at 9:35 am #1169859Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘How to show the ticket sales end date into the event.’ is closed to new replies.