Posted: March 17, 2018 at 5:14 pm
|
I have the same problem… http://www.micrisordos.org/wdag2020/events/wdag-2020-registration-only/ I would like to have “1” by default as QTY for each ticket, but giving the possibility to change them to “0”. When want every register come to our Conference for all the days (QTY = “1” for all days), but if He don’t want to come 1 day for example, would be able to change this value to “0”. Thanks. |
Hi there, You can change the quantity to 1 by adding a bit of jQuery to the page:
You can add the above to a functions plugin or into your WordPress theme’s functions.php file. |
|
|
Brilliant, thanks Josh, works like a charm! |
|
Great job Josh! Works perfect. Thanks a lot. 😉 |
|
@Josh! I found a little problem with the jQuery solution you offered. |
Well, yes, it will because your defaulting all tickets to have a default Qty of 1 so the user would need to set one of the tickets to 0 (which is one of the reasons we do not default to 1 on the ticket selector). So to confirm, you have the ‘Maximum number of tickets allowed per order for this event’ option set to 1, but have multiple ticket options on the event which are all now defaulting to 1 (meaning the total number of selected tickets is greater than 1)? |
|
|
That is exactly the situation Tony, which results in both tickets having a radio button instead of a number, and both tickets are set to 1. |
Try this slight change to Josh’s example:
|
|
The support post ‘Split: Set number of tickets by default on 1’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.