Default value number of tickets = 1 and attendee information display

Home Forums Ticket Products Event Tickets Plus Default value number of tickets = 1 and attendee information display

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1269893
    Szymon
    Participant

    Hi I would like to recreate this thread.

    Default number for RSVP

    I managed to change default value to 1 by adding this function to function.php

    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
    }

    I also added the snippet with !important to show attendees information. But it doesn’t work.

    .tribe-tickets-meta-row {
    display: table-row !important;
    }

    Here is an example page of my event
    http://www.be3dartist.co.uk/course/character-modeling

    #1269963
    Victor
    Member

    Hi Szymon!

    Thanks for reaching out to us and for using our plugins! 🙂

    Let me help you with that.

    It seems that the css snippet you are using won’t work because you’re using a theme that may be changing the html code for the attendee information. Instead, you should try the following >

    tribe-event-tickets-plus-meta {
    display: table-row !important;
    }

    Let me know how that works.

    Best!
    Victor

    #1270375
    Szymon
    Participant

    Doesn’t work. Unfortunatelly….

    #1270380
    Szymon
    Participant

    I see it works for RVSP ticket, but doesn’t work for the paid with woocommerce type.

    #1270624
    Victor
    Member

    Hi Szymon!

    You are right, the CSS approach to this won’t work for paid tickets. But, I don’t think the JavaScript snippet of code you are using will work either.

    I do want to note that we are fairly limited in how much we can support custom development questions like this. That said, let me try to help you with this.

    I would suggest overriding the tickets.php template to make that happen. You can learn more about overriding calendar templates in our Themer’s Guide, but it basically boils down to this:

    • Make a copy of the tickets.php template. It is located at/wp-content/plugins/event-tickets-plus/src/views/wootickets/tickets.php
    • Make a new folder in your theme called tribe-events
    • Make a new folder in that one called wootickets
    • Drop your copied tickets.php file in that last folder

    Now that the template is in your theme, you should modify line 90 and change the code to look like this >

    'input_value' => 1,

    After this, you won’t need a css snippet to make the attendees information show.

    Cheers!
    Victor

    #1278215
    Brent
    Participant

    This reply is private.

    #1278933
    Victor
    Member

    Hi Brent,

    Welcome to the forums and thanks for chiming in.

    For the sake of keeping things clean — as your issue seems a bit different than the original — I would kindly like to ask you to open a separate topic. We will be here to help you out and you will get your own personal consultant who will be focusing on your issue.

    Thanks and cheers!
    Victor

    #1289524
    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 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Default value number of tickets = 1 and attendee information display’ is closed to new replies.