Home › Forums › Ticket Products › Event Tickets Plus › Only one ticket per person
- This topic has 24 replies, 3 voices, and was last updated 9 years, 4 months ago by
Jack.
-
AuthorPosts
-
November 14, 2016 at 3:01 am #1191748
Jack
ParticipantI 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.November 14, 2016 at 7:02 pm #1192233Nico
MemberHi 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,
NicoNovember 15, 2016 at 12:42 am #1192293Jack
ParticipantHi 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?November 15, 2016 at 6:54 pm #1192920Nico
MemberHey 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,
NicoNovember 16, 2016 at 12:38 am #1193010Jack
ParticipantHi Nico,
Thanks! And I will be patient (although my client has to send out invitations today, but she has to be patient too then ;). )
November 16, 2016 at 5:55 am #1193080Jack
ParticipantHi 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.
November 17, 2016 at 11:43 am #1194047Nico
MemberHi 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,
NicoNovember 17, 2016 at 12:04 pm #1194059Jack
ParticipantHi 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.
November 18, 2016 at 9:11 am #1194571Nico
MemberThanks 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,
NicoNovember 18, 2016 at 9:24 am #1194584Jack
ParticipantSorry, my mistake. The password for that page is Utrecht.
Only tickets are used, no events.November 21, 2016 at 2:34 am #1195236Jack
ParticipantHi Nico,
Did you have a chance to take another look at this?
November 21, 2016 at 12:54 pm #1195491Nico
MemberThanks 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,
NicoNovember 21, 2016 at 1:47 pm #1195524Jack
ParticipantHi Nico,
I just added it to my functions.php but nothing has changed in the front end I’m afraid.
November 22, 2016 at 11:50 am #1196101Nico
MemberSorry 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,
NicoNovember 22, 2016 at 12:33 pm #1196131Jack
ParticipantI’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
-
This reply was modified 9 years, 5 months ago by
-
AuthorPosts
- The topic ‘Only one ticket per person’ is closed to new replies.
