Home › Forums › Ticket Products › Event Tickets Plus › Default value number of tickets = 1 and attendee information display
- This topic has 8 replies, 3 voices, and was last updated 8 years, 11 months ago by
Szymon.
-
AuthorPosts
-
April 14, 2017 at 12:52 am #1269893
Szymon
ParticipantHi I would like to recreate this thread.
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-modelingApril 14, 2017 at 7:19 am #1269963Victor
MemberHi 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!
VictorApril 14, 2017 at 11:43 pm #1270375Szymon
ParticipantDoesn’t work. Unfortunatelly….
April 15, 2017 at 12:31 am #1270380Szymon
ParticipantI see it works for RVSP ticket, but doesn’t work for the paid with woocommerce type.
April 17, 2017 at 6:32 am #1270624Victor
MemberHi 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!
VictorMay 3, 2017 at 12:52 pm #1278215Brent
ParticipantThis reply is private.
May 4, 2017 at 6:37 pm #1278933Victor
MemberHi 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!
VictorMay 26, 2017 at 9:35 am #1289524Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Default value number of tickets = 1 and attendee information display’ is closed to new replies.
