Handling Ticket Quantities Redux

Home Forums Calendar Products Community Events Handling Ticket Quantities Redux

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1020527
    smalldogcreative
    Participant

    Revisiting the need to instantiate initial quantity of 0, then allow return to 0 after increasing quantity, noted peculiar issue.

    In the https://theeventscalendar.com/knowledgebase/handling-ticket-quantities/#dl_file-set-ticket-default-php thread, this snippet is called out:

    woocommerce_quantity_input( array(
    'input_name' => 'quantity_' . $ticket->ID,
    'input_value' => 0,
    'min_value' => 0,
    'max_value' => $max_quantity,
    ) );

    The snippet allows setting the initial quantity to “0”, but does not allow the quantity to return to “0” after being increased to any other integer (see here: http://www.screencast.com/t/zFuRmUZMjn)

    However, setting ‘min_value’ to “-1” allows quantity to set to “0” and “-1”.

    Is there a workaround?

    #1020788
    Josh
    Participant

    Hey,

    Thanks for reaching out to us!

    I just tested out the snippet and ended up with the following https://cloudup.com/cTG8TQNOsYS. After making that change I was able to still get the input to go back to “0” on the ticket.

    Does the issue persist if you follow the Testing for Conflicts procedures?

    Thanks!

    #1020915
    smalldogcreative
    Participant

    This reply is private.

    #1021317
    Josh
    Participant

    Hey,

    No problem. I’m glad you were able to find the root issue here.

    Thanks!

    #1075350
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Handling Ticket Quantities Redux’ is closed to new replies.