No Message "end date for sales reached"

Home Forums Ticket Products Event Tickets Plus No Message "end date for sales reached"

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1049776
    websource
    Participant

    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

    #1050663
    Brian
    Keymaster

    Hi 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.

    http://tribe.uservoice.com/

    Does that work for now?

    Cheers

    #1050758
    websource
    Participant

    Hi 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.

    #1050817
    Brian
    Keymaster

    Hi,

    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.

    #1050940
    websource
    Participant

    Should work, thanks!

    #1051171
    Brian
    Keymaster

    Sounds good. Let us know what you find out.

    Thanks

    #1076497
    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 7 posts - 1 through 7 (of 7 total)
  • The topic ‘No Message "end date for sales reached"’ is closed to new replies.