Skip to main content

Limit the number of tickets a user can purchase

I only want my guests to be able to purchase 1 ticket at a time. How do I prevent my guests from opting to buy multiple tickets from my event page?

Official response from

There is a slight theme modification you can make to prevent your guests from purchasing multiple tickets in one transaction.  To prevent people from entering a value above 1 on your event page, you will want to set a maximum value for your rsvp field. 

Look for the following code in your event page's template:

<div class="padtopmore"><strong>{{ ticket_level.form_quantity }}</strong></div>

Delete the liquid code, "{{ ticket_level.form_quantity }}" and replace it with the source code that creates this field. There are two ways to find the source code.

1. Right click on your page and select Google Chrome's "Inspect" tool: 

Screen_Shot_2018-01-31_at_5.25.19_PM.png

 

Screen_Shot_2018-01-30_at_5.38.45_PM.png

 

OR 2. Right click on your page and select "View Page Source":

Screen_Shot_2018-01-31_at_5.29.40_PM.png

Find the text "Will you come?" and below it, locate the code for each of your ticket levels. 

Screen_Shot_2018-01-31_at_5.23.30_PM.png

 

Typed out, this code is the following:

<input type="number" class="quantity" name="event_ticket_level[47]" value="0">

To set a maximum value, you can add the following parameters after the value (within the angle bracket): "min=0 max=1". The resulting code will look like this:

<input type="number" class="quantity" name="event_ticket_level[47]" value="0" min=0 max=1>


Notes:

1. In addition to setting minimums or maximums for your tickets per RSVP, you will also likely want to modify the language above this line that instructs users to, "Enter the number of tickets you would like to purchase." 

2. If you regularly clone your event pages, beware of the fact that the number associated with the ticket level (i.e. "47") is unique to that exact ticket for your event. If you clone the event, you will need to use the inspect tool again to find the number that is appropriate to your new page's ticket.

Share this post

Showing 6 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.