Ticket Type#

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

Attributes#

AttributeDescription
idThe ID of the ticket type.
eventThe associated Event.
eventIdThe ID of the event this ticket type belongs to.
titleThe name of the ticket type (e.g., VIP, General Admission).
priceThe price for tickets of this type.
capacityThe maximum number of tickets of this type that can be sold.
availableFromThe date from which this ticket type is available for sale.
availableToThe date until which this ticket type is available for sale.
descriptionA description of this ticket type.

Methods#

MethodDescription
getCpEditUrl()Returns the URL to edit this ticket type in the control panel.
getTickets()Returns a collection of Ticket objects for this ticket type.
isAvailable()Returns true if this ticket type is available for sale based on the availableFrom and availableTo dates.
getCapacity()Returns the total capacity for this ticket type, or null if no capacity is set.
getPrice()Returns the price for this ticket type.

Previous ← Session Next Ticket →