• Event Tickets is pretty good software that provides a very comfortable checkout experience to users familiar with old-school PayPal, and its various redirects.

    After installing it, though, we found about half of our users were clicking the big “Purchase Ticket” button without first adjusting the quantity from its default setting of “0”. This turned out to be an issue, because we also found that very few users who clicked the “Purchase Tickets” button actually wished to buy zero tickets.

    Here are some patches to fix that weirdness. It’d be so great if you’d pull these so we don’t have to tweak the code after every update:

    user@server:/wp-content/plugins/event-tickets/src/views/blocks/tickets# diff quantity-number.php-dist quantity-number.php
    29c29
    < 		min="0"
    ---
    > 		min="1"
    34c34
    < 		value="0"
    ---
    > 		value="1"
    user@server:/wp-content/plugins/event-tickets/src/views/tickets# diff tpp.php-dist tpp.php
    83c83
    < 							min="0"
    ---
    > 							min="1"

    Thanks!!

    -Henry

    • This topic was modified 4 years, 11 months ago by hkingman.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sky Shabatura

    (@skyshab)

    Hi there,

    Thanks for reaching out. I regularly show people how to make that change, so perhaps this should be considered as a default.

    I will bring this up with our team.

    Appreciate the feedback!

    Best,
    Sky

    Hi Henry (@hkingman),

    Can you please explain a bit further on how to make this change. I tried to follow your code as best I could, but it didn’t seem to work for me. Your kind assistance would be appreciated!

    Joe

    I second Sky’s suggestion to have 1 as a default value.

    The default value could be a parameter when you create a ticket.
    This would allow you to set defaults as follow for example:
    [1] VIP ticket
    [0] Standard Adult Ticket
    [0] Standard Child Ticket
    where the event organizer can select which one(s) of the ticket are 1 ( or more ) or 0 .

    Thread Starter hkingman

    (@hkingman)

    @joemina I am sorry I did not notice your request sooner. Hopefully you have figured it out by now, but in case not, this is what the patches do:

    Patch 1:
    open /wp-content/plugins/event-tickets/src/views/blocks/tickets/quantity-number.php in the editor of your choice (vi, nano, I doubt you are an emacs user 😉

    go to around line 29 (in vi, do “set number” if you like and scroll, or just do “29 G”) and look for a line that reads ‘min=”0″‘ and change it to ‘min=”1″‘. Then go to line 34 or so and change ‘value=”0″‘ to ‘value=”1″‘. Save and close the file (esc :wq in vi)

    next, edit /wp-content/plugins/event-tickets/src/views/tickets/tpp.php. Go to around line 83 and change ‘min=”0″‘ to ‘min=”1″‘.

    C’est tout!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PATCH: Buy Tickets form should start at 1 not 0’ is closed to new replies.