Hello ET+ Support Folks:
I need to change the default number from 0 to 1 when someone goes to the order screen. I found the code at bottom of post very helpful (from your Knowledgebase). However, if I want to also limit the number of tickets someone can buy per transaction, where would I set that number? Would I replace “$” with number next to max_quantity? Here’s the code from your knowledgebase.
Set the Default Input Value
Within that file, locate the following (should be around lines 55-60):
woocommerce_quantity_input( array(
‘input_name’ => ‘quantity_’ . $ticket->ID,
‘input_value’ => 0,
‘min_value’ => 0,
‘max_value’ => $max_quantity,
) );
view raw
set-ticket-default.php hosted with ❤ by GitHub
See that part that reads ‘input_value’ => 0? Simply change the 0 to 1 and you’re done!
Thanks for all your help.
Ron…