Home › Forums › Ticket Products › Event Tickets Plus › Restrict attendee to one per rsvp
- This topic has 8 replies, 3 voices, and was last updated 9 years, 2 months ago by
Cliff.
-
AuthorPosts
-
February 7, 2017 at 2:57 am #1230429
Dirk
ParticipantHello, is it possible to restrict the number of attendees to one per rsvp. And is it possible to hide the counter of the number of attendees? See screenshot
February 7, 2017 at 2:34 pm #1230909Cliff
MemberHi, Dirk.
Please reference this snippet:
https://gist.github.com/cliffordp/80b33455779b74ec49f6ea3033cb47bf
Best practice for adding custom code (like to implement a PHP snippet to modify The Events Calendar) is to create a functionality plugin, unless it’s something specific to your theme, in which case best practice is to make sure you’re using a child theme, then add the customization to your child theme’s functions.php file.
You could also add some CSS or JS to hide the quantity input.
Please let me know how this goes for you.
February 7, 2017 at 10:59 pm #1231103Dirk
ParticipantHi Cliff,
Sorry, but it didn’t help. I tried the snippet by pasting it in the functions.php but after that the site was down. With filezilla I erased the snippet and the site was there again. I work withe a Child theme of Avada. And I pasted the snippet in the child’s functions.php. I’m not a good coder, so can you help me?
Dirk
February 8, 2017 at 9:54 pm #1231861Cliff
MemberDirk, I’m guessing you did everything correctly except that you should not paste the initial <?php part… just everything thereafter from that snippet.
Also, if your site goes down again, please specify exactly what error you received and/or what you saw and where you saw it.
Thank you.
February 10, 2017 at 3:49 am #1232727Dirk
ParticipantHi Cliff,
I was able to get it working.
I do have another question about the Attendees List, how can I retrieve the information the user typed into the input field labeled “bedrijfsnaam”?
And I would also like to hide the “Header” above “bedrijfsnaam”
Regards,
DirkFebruary 10, 2017 at 6:15 pm #1233168Cliff
MemberDirk, in our forums we keep our threads focused on just one issue at a time to ensure we fully answer each of your questions/issues. Please keep this in mind for the future. Thanks for your understanding.
1)
I’m glad you got it working.
2)
At the Attendees Report, the 3rd column has “View details ▼” — click that to display Event Tickets Plus’ attendee meta information per ticket.
3)
Here’s some CSS if you want it to affect all events’ tickets:
body.single-tribe_events .tribe-event-tickets-plus-meta-attendee header { display: none; }Please let me know how this goes for you.
February 16, 2017 at 11:14 pm #1239627Dirk
ParticipantThis reply is private.
February 17, 2017 at 6:12 pm #1240611Cliff
MemberDirk, thanks for letting me know your issue is now Resolved.
Have a great weekend.
-
AuthorPosts
- The topic ‘Restrict attendee to one per rsvp’ is closed to new replies.
