Default ticket quantity to 1

Home Forums Ticket Products Event Tickets Plus Default ticket quantity to 1

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1110254
    Sandra
    Participant

    Hi there,

    Is there any way that the default quantity is 1 rather than 0 (as it is now) in the section to buy tickets? If the user clicks Add to Cart without changing this number, the cart is empty and the user is redirected to go back to the Shop (of which there isn’t one). Ideally would like a functions.php solution so I don’t have to edit the core plugin file. I have tried using something that defaults Woocommerce quantity to 1, but there must be something in your plugin that is overriding it. I don’t have different tiers of pricing for each event, so defaulting to 1 is ideal.
    I found this thread, but it’s for the old Woocommerce plugin https://theeventscalendar.com/support/forums/topic/checkout-quantity-field-is-zero-can-it-default-to-1/

    Hope you can help.

    Cheers,

    Sandra

    #1110316
    Geoff B.
    Member

    Good evening Sandra and welcome back!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    I would still try that snippet as I believe it works: http://clicknathan.com/web-design/customizing-wootickets-for-events-calendar/

    If that does not work, you might want to read and adapt the following: https://docs.woothemes.com/document/adjust-the-quantity-input-values/

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1110322
    Sandra
    Participant

    Thanks for your quick reply, Geoff!

    The first snippet was for editing the plugin so I couldn’t use that, but the second Woocommerce one for functions.php did the job – thanks!

    Cheers,
    S
    andra

    #1110731
    Geoff B.
    Member

    Good evening Sandra,

    I’m stoked to hear that this worked out for you. Kudos!

    You are welcome back on our support forums any time 🙂

    For now, I am going to close this thread.

    Have a great week!

    Geoff B.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Default ticket quantity to 1’ is closed to new replies.