Support » Plugin: WP Event Ticketing » [Plugin: WP Event Ticketing] Quantity Dropdown

Viewing 2 replies - 1 through 2 (of 2 total)
  • Having the same problem, I would love to learn where i can modify this!

    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.