Maximum Number of Tickets Per Order

Home Forums Ticket Products Event Tickets Plus Maximum Number of Tickets Per Order

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1348816
    Ronald Horne
    Participant

    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…

    #1348907
    Patricia
    Member

    Hey Ronald,

    Thank you for reaching out to us!

    As already mentioned by Nico in this thread, basically there’s no option to limit the number of tickets purchased per person from our plugin.

    The Min/Max Quantities plugin for WooCommerce adds this functionality, so I would recommend you to check it.

    I hope this helps! Let me know if you have any other questions.

    Best Regards,

    Patricia

    #1359739
    Support Droid
    Keymaster

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Maximum Number of Tickets Per Order’ is closed to new replies.