Restrict attendee to one per rsvp

Home Forums Ticket Products Event Tickets Plus Restrict attendee to one per rsvp

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1230429
    Dirk
    Participant

    Hello, 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

    #1230909
    Cliff
    Member

    Hi, 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.

    #1231103
    Dirk
    Participant

    Hi 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

    #1231861
    Cliff
    Member

    Dirk, 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.

    #1232727
    Dirk
    Participant

    Hi 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,
    Dirk

    #1233168
    Cliff
    Member

    Dirk, 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.

    #1239627
    Dirk
    Participant

    This reply is private.

    #1240611
    Cliff
    Member

    Dirk, thanks for letting me know your issue is now Resolved.

    Have a great weekend.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Restrict attendee to one per rsvp’ is closed to new replies.