Home › Forums › Ticket Products › Event Tickets Plus › No Message "end date for sales reached"
- This topic has 6 replies, 3 voices, and was last updated 8 years, 2 months ago by Support Droid.
-
AuthorPosts
-
January 4, 2016 at 6:37 am #1049776websourceParticipant
Why is there no Message like “end date for sales reached” when a ticket reached the end date? That the whole ticket part just hides away can may be a bit confusing and unclear to users.
Thanks for your answer
January 5, 2016 at 11:04 am #1050663BrianKeymasterHi Again,
You are right there is no message there and it would be support and the product better to have something.
I found you can add a message to this template:
plugins/event-tickets-plus/src/views/wootickets/tickets.php
Moved to here in your theme:
yourtheme/tribe-events/wootickets/tickets.php
Then at the bottom.
Replace this
if ( $is_there_any_product ) {
echo $content;
}With this:
if ( $is_there_any_product ) {
echo $content;
} else {
echo "Tickets are no longer on sale.
";
}
You could then replace the message I put there with something you would like to use.
Also, if you think that is something you would like as a feature I encourage you to visit our User Voice Page and either upvote an existing request or make a new request there.
Does that work for now?
Cheers
January 5, 2016 at 2:41 pm #1050758websourceParticipantHi Brian
Thanks for helping out. I think it should be at
if ( $ticket->date_in_range( time() ) ) {
right?
if ( $is_there_any_product )
would also show the message when there are no tickets at all, right?Thanks for your answer. I already created a pull request on github and hope that you will implement it.
January 5, 2016 at 5:26 pm #1050817BrianKeymasterHi,
Yeah you can add a message there too, mine was just a quick way to show a message if no tickets at all show.
It would be better to show a message per ticket and say tickets are either not on sale yet or no longer on sale.
I can help a little about that, but limited in customizations.
January 6, 2016 at 4:38 am #1050940websourceParticipantShould work, thanks!
January 6, 2016 at 6:39 am #1051171BrianKeymasterSounds good. Let us know what you find out.
Thanks
February 18, 2016 at 8:33 am #1076497Support DroidKeymasterThis 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 ‘No Message "end date for sales reached"’ is closed to new replies.