- This topic has 7 replies, 2 voices, and was last updated 2 years, 6 months ago by ksministries.
November 29, 2017 at 12:51 pm #1395230
Hello we are offering 3 types of tickets for an upcoming event using Event Tickets Plus and we would like the quantity field to be set to zero by default but right now all three tickets are set to 1 by default which cause all three tickets to be placed into the cart by the user. Can we get these fields to be set to zero? ThxNovember 29, 2017 at 2:54 pm #1395329
Started another thread.November 30, 2017 at 12:56 am #1395542
We are still having problems with this. We have an event with multiple tickets and we would like each ticket to show a zero in the input selection field to avoid customers adding all tickets to their cart when add to cart is picked on. But at the same time for events with only a single ticket we would like the default to be set to 1 (one) though right now the default is set to zero for all. Can we keep it at zero when there are multiple tickets for an event and when there is only one ticket type have it default to 1?
Along the same lines when there are multip[le tickets and all selection input fields are set to zero is there a way to make is mandatory that the customer chose a ticket before they can add to cart? Right now with all zeros if they hit the add to cart button nothing gets added to the cart. ThxNovember 30, 2017 at 8:56 pm #1396326CliffKeymaster
Hi. By default all tickets display zero, as you’re wanting.
Do you have some custom code in place to set it to 1 instead of the default zero?December 1, 2017 at 7:53 am #1396614
No I had no custom code for this in place. I had to copy over there ticket.php file and change the bellow to get things to be set to zero. I would still like to be able to have all our events with only a single ticket to be set to 1 is there a way for me to do that? Thx
‘input_name’ => ‘quantity_’ . $ticket->ID,
‘input_value’ => 0,
‘min_value’ => 0,
‘max_value’ => $must_login ? 0 : $max_quantity, //December 1, 2017 at 2:28 pm #1396981CliffKeymaster
Maybe the default of 1 is coming from your theme or another plugin. Do all of your WooCommerce products default to a quantity of 1?
If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.December 23, 2017 at 8:35 am #1412253Support DroidKeymaster
Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team
- The topic ‘Checkout quantity field is set to 1 instead of zero’ is closed to new replies.