Default Ticket Number

Home Forums Ticket Products Event Tickets Plus Default Ticket Number

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #994934
    Bradley
    Participant

    Hi I would like to set the default ticket number to be 1.

    How do I set this?

    Brad

    #994990
    George
    Participant

    Hey Brad,

    Unfortunately, the only way to pull this off is with some code customization. There are two methods I can think of: a more “formal” approach where modify the value directly in the templates, which can be achieved by creating theme overrides as per the instructions outlined in our Themer’s Guide → https://theeventscalendar.com/knowledgebase/themers-guide/

    A simpler alternative would be to sneak some custom JavaScript into the page and do it that way. We don’t offer support for writing custom code here on the forums…but if you’re interested in this, you’d basically just add some code like the following to your theme’s functions.php file:

    add_action( 'wp_footer', 'tribe_994934_custom_js', 100 );

    function tribe_994934_custom_js() {
    ?>
    <script>
    jQuery(document).ready(function($){
    if ( $('.tribe-events-tickets').length ) {
    $('.tribe-events-tickets .quantity input.qty').val( '1' );
    }
    });
    </script>
    <?php
    }

    That works well for me and hopefully does for you, too.

    Cheers!
    George

    #999106
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Default Ticket Number’ is closed to new replies.