Only one ticket per person

Home Forums Ticket Products Event Tickets Plus Only one ticket per person

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #1191748
    Jack
    Participant

    I got a new question from my client.

    I have a page with 6 time periods, thus I created 6 tickets.

    Each ticket/time period has a total of 400 tickets, but each person that orders a free ticket can only order ONE ticket, namely for himself, and for ONE time period only. Makes sense.

    This means that someone who arrives at the page with tickets can order only ONE ticket on that page.
    I added a screenshot to explain what needs to be done.

    #1192233
    Nico
    Member

    Hi there Jack,

    Thanks for getting in touch with us on this!

    While we cannot help much on customizations like this one I can surely help you getting started ๐Ÿ™‚

    So, to achieve this what I can think of is just limit the user to select one ticket ticket type. If other one is selected then the others should get set to ‘zero’. Makes sense?

    One more thing, are users doing RSVPs logged into the site?

    Please let me know about it and I’ll do my best to help you out,
    Best,
    Nico

    #1192293
    Jack
    Participant

    Hi Nico,

    No, users are just visitors and not logged into the site.

    How do I do what you suggest?
    So, to achieve this what I can think of is just limit the user to select one ticket ticket type. If other one is selected then the others should get set to โ€˜zeroโ€™. Makes sense?

    #1192920
    Nico
    Member

    Hey Jack, thanks for following up!

    No, users are just visitors and not logged into the site.

    Thanks for clarifying!

    How do I do what you suggest?

    Just give me a bit of time and I’ll create a sample snippet for you to work on top of.

    Thanks for the patience while I work on this,
    Best,
    Nico

    #1193010
    Jack
    Participant

    Hi Nico,

    Thanks! And I will be patient (although my client has to send out invitations today, but she has to be patient too then ;). )

    #1193080
    Jack
    Participant

    Hi Nico,

    I got some more question from my client who got these questions from her client… I think they may be related to the first question, but have more to do with clarity towards the visitor.

    Currently it is possible to choose more items of one ticket/time period, but also pick more than one ticket/ time-periods. That client would like to see a checkbox/radiobutton so that only one time period can be chosen (see screenshot I added earlier). I can understand his wishes and in this case (one ticket / one time period) this makes sense. Then, if one ticket/time period is chosen, the rest becomes invisible or inactive of whatever.

    Also, if this could work, the visitor has to add his name and e-mail twice. They don’t want that :(.

    • This reply was modified 9 years, 5 months ago by Jack.
    #1194047
    Nico
    Member

    Hi Jack,

    Thanks for following up! I could develop a JS snippet to help you on this, just add the following code to your theme’s (or child theme’s) functions.php file:

    https://gist.github.com/niconerd/466453697713a569dcc97d924340fa01

    Please let me know if this works for you,
    Best,
    Nico

    #1194059
    Jack
    Participant

    Hi Nico,

    Thanks so much for willing to help me with this.
    I added the code to my functions file, but I can still choose more than one ticket in more than one time period.

    http://www.zelfshopkerstpakket.nl/aanmelding-universiteit-utrecht/

    • This reply was modified 9 years, 5 months ago by Jack.
    #1194571
    Nico
    Member

    Thanks for following up Jack!

    I’m not able to see the link you sent me looks like it’s password protected or something similar? Also, if tickets are in a page and not in an event this script won’t work as it’s checking if the user is viewing a single event page.

    Please make the link public or send a temp password in a private reply so I can see the tickets form,
    Best,
    Nico

    #1194584
    Jack
    Participant

    Sorry, my mistake. The password for that page is Utrecht.
    Only tickets are used, no events.

    #1195236
    Jack
    Participant

    Hi Nico,

    Did you have a chance to take another look at this?

    #1195491
    Nico
    Member

    Thanks for following up Jack!

    Sorry for the delay we do not monitor the forums during weekends.

    Please try this updated version of the snippet:

    https://gist.github.com/niconerd/466453697713a569dcc97d924340fa01

    Please let me know if it works as intended now,
    Best,
    Nico

    #1195524
    Jack
    Participant

    Hi Nico,

    I just added it to my functions.php but nothing has changed in the front end I’m afraid.

    #1196101
    Nico
    Member

    Sorry to hear this is still not working Jack. Please try this updated version, I made a minor tweak and I think it will work now:

    https://gist.github.com/niconerd/466453697713a569dcc97d924340fa01

    Best,
    Nico

    #1196131
    Jack
    Participant

    I’m sorry, but it is still not working. I added the code to my custom functions php file, but even when I add it to the functions file of the theme it is not working.

    http://storage7.static.itmages.com/i/16/1122/h_1479846749_2874305_aecd55879b.jpeg

Viewing 15 posts - 1 through 15 (of 24 total)
  • The topic ‘Only one ticket per person’ is closed to new replies.