Reference

Ticket Type

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

Properties

id

Type: int|null

The ID of the ticket type.

event

Type: verbb\events\elements\Event|null

The associated Event.

title

Type: string|null

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

price

Type: float|null

The price for tickets of this type.

capacity

Type: int|null

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

availableFrom

Type: DateTime|null

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

availableTo

Type: DateTime|null

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

Methods

getCpEditUrl()

Returns: string|null

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

getTickets()

Returns: verbb\events\elements\TicketCollection

Returns a collection of Ticket objects for this ticket type.

getIsAvailable()

Returns: bool

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

getPrice()

Returns: float|null

Returns the price for this ticket type.

Last updated: Sept 14, 2026, 8:30:20 PM