Shouldn't be able to add ticket without selecting a number

Home Forums Ticket Products Event Tickets Plus Shouldn't be able to add ticket without selecting a number

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1519059
    colombalondon
    Participant

    Hi
    It is currently possible to hit “add to cart” for a ticket, when no ticket is selected. Is there a way to validate that a ticket number has been entered before attempting to add the ticket?
    Thanks

    #1519738
    Cliff
    Member

    Hi. I tested on both your site and my site and trying to add a zero quantity of WooCommerce tickets takes me to the WooCommerce Cart with a message that the cart is empty.

    If you’re saying that you’d like to avoid this potential confusion and disallow clicking the button until the quantity is entered, here are some options:

    1) Always set a quantity of 1:

    https://gist.github.com/cliffordp/5b57df71be8b52f595817ddbf81acdab

    2) Custom JS

    You could add some custom JS to detect. I imagine the code snippet above could be used to point you in the right direction.

    ===

    And/Or you could request this as a new feature (or maybe search to see if the idea was already posted by someone else) at our plugins’ UserVoice page.

    This allows others who are interested in that feature to easily voice their support. We frequently review suggestions there to find out which ones are popular, then we implement as many of them as we can.

    If you post it / find it, feel free to link to it from here in case anyone comes across this forum thread in the future.

    #1536215
    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 ‘Shouldn't be able to add ticket without selecting a number’ is closed to new replies.