available tickets

Home Forums Ticket Products Event Tickets Plus available tickets

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1562218
    gigidalprato
    Participant

    Hi, is there a possibility to move the small data string regarding available tickets into another page?
    I just would like to include within the text into another page.

    #1562412
    Jennifer
    Keymaster

    Hello,

    Thanks for reaching out!

    You can remove it from this page (and add it to another events page) by doing a template override. The template where this message is located can be found at wp-content/plugins/event-tickets-plus/src/views. If you’re using Easy Digital Downloads, then you’ll want to override the tickets.php found in the eddtickets folder. If you’re using WooCommerce, you’ll want to override the tickets.php file found in the wootickets folder. The code for the message can be found here:

    if ( $available ) {
    ?>
    <span class="tribe-tickets-remaining">
    <?php
    $readable_amount = tribe_tickets_get_readable_amount( $available, null, false );
    echo sprintf( esc_html__( '%1$s available', 'event-tickets-plus' ),
    '<span class="available-stock" data-product-id="' . esc_attr( $ticket->ID ) . '">' . esc_html( $readable_amount ) . '</span>'
    );
    ?>
    </span>
    <?php
    }

    Note that depending on where you’re copying it to, you might have to tweak this code or use different code for the message to appear somewhere else.

    We are limited in the amount of support that we can provide for customizations, but if you get stuck or have any questions, please let me know – I’ll be happy to try to point you in the right direction!

    Thanks,

    Jennifer

    #1578224
    Support Droid
    Keymaster

    Hey 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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘available tickets’ is closed to new replies.