Title: [Plugin: WP Event Ticketing] Quantity Dropdown
Last modified: August 20, 2016

---

# [Plugin: WP Event Ticketing] Quantity Dropdown

 *  [edluvables](https://wordpress.org/support/users/edluvables/)
 * (@edluvables)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-event-ticketing-quantity-dropdown/)
 * Is there a way to limit the amount of tickets people can buy? I’m running a special
   at a restaurant where we limit one ticket per person per week, and course people
   are disregarding that and purchasing multiple tickets. How can I change the dropdown
   quantity to 1?
    [http://johnnysfillinstation.com/special-offers/50-gift-certificate-to-jos-for-25](http://johnnysfillinstation.com/special-offers/50-gift-certificate-to-jos-for-25)
 * [http://wordpress.org/extend/plugins/wpeventticketing/](http://wordpress.org/extend/plugins/wpeventticketing/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [bananerd](https://wordpress.org/support/users/bananerd/)
 * (@bananerd)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-event-ticketing-quantity-dropdown/#post-2939635)
 * Having the same problem, I would love to learn where i can modify this!
 *  [bananerd](https://wordpress.org/support/users/bananerd/)
 * (@bananerd)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-event-ticketing-quantity-dropdown/#post-2939636)
 * Hey, just so everyone knows this is possible I was able to change this by editing
   the ticketing.php file of the plugin. Just search “10” and replace it with your
   desired values in this snippet (I used “4” for my quantity limit)
 *     ```
       //determine remaining tickets so we don't display selectors that allow too many tickets to be sold
   
       				//overall attendance max takes precendece over individual package quantity limitation
   
       				$totalRemaining = $o["eventAttendance"] - $o["packageQuantities"]["totalTicketsSold"];
   
       				if ($v->packageQuantity)
   
       				{
   
       					$packageRemaining = $v->packageQuantity - $o["packageQuantities"][$v->packageId];
   
       					$packageCounter = ($packageRemaining * $v->ticketQuantity) < $totalRemaining ? $packageRemaining : floor($totalRemaining / $v->ticketQuantity);
   
       					$packageCounter = $packageCounter > 4 ? 4 : $packageCounter;
   
       				}
   
       				else
   
       				{
   
       					if(!$v->ticketQuantity)
   
       						$v->ticketQuantity = 1;
   
       					$packageRemaining = floor($totalRemaining / $v->ticketQuantity);
   
       					$packageCounter = $packageRemaining > 4 ? 4 : $packageRemaining;
   
       				}
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: WP Event Ticketing] Quantity Dropdown’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpeventticketing.svg)
 * [WP Event Ticketing](https://wordpress.org/plugins/wpeventticketing/)
 * [Support Threads](https://wordpress.org/support/plugin/wpeventticketing/)
 * [Active Topics](https://wordpress.org/support/plugin/wpeventticketing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpeventticketing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpeventticketing/reviews/)

## Tags

 * [Event Ticketing](https://wordpress.org/support/topic-tag/event-ticketing/)

 * 2 replies
 * 2 participants
 * Last reply from: [bananerd](https://wordpress.org/support/users/bananerd/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-event-ticketing-quantity-dropdown/#post-2939636)
 * Status: not resolved