Change max number of tickets

Home Forums Ticket Products Event Tickets Plus Change max number of tickets

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29508
    Teresa
    Participant

    We are offering online workshops and will only want one person to register at a time using the ticket function. Is it possible to put a cap on the amount of tickets sold at a time?

    #29551
    Barry
    Member

    IF you haven’t already done so can you read up on template overrides?

    A possible solution would be to override tickets.php (the original you might want to base your override on can be found in the wootickets/views directory) and look for the section containing this line:

    woocommerce_quantity_input( array( ...

    That section ends with this line:

    'max_value' => $product->backorders_allowed() ? '' : $product->get_stock_quantity(), ) );

    Can you try changing it to:

    'max_value' => 1 ) );

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Change max number of tickets’ is closed to new replies.