Reference

Ticket Type

Whenever you’re dealing with a ticket type in your template, you’re working with a TicketType object.

Properties

id

The ID of the ticket type.

event

The associated Event.

title

The name of the ticket type (e.g., VIP, General Admission).

price

The price for tickets of this type.

capacity

The maximum number of tickets of this type that can be sold.

availableFrom

The date from which this ticket type is available for sale.

availableTo

The date until which this ticket type is available for sale.

Methods

getCpEditUrl()

Returns the URL to edit this ticket type in the control panel.

getTickets()

Returns a collection of Ticket objects for this ticket type.

getIsAvailable()

Returns true if this ticket type is available for sale based on the availableFrom and availableTo dates.

getPrice()

Returns the price for this ticket type.