Ticket#

Whenever you’re dealing with a ticket in your template, you’re actually working with a Ticket object.

Attributes#

AttributeDescription
idThe ID of the ticket.
titleThe ticket title.
eventThe ticket’s associated Event.
eventIdThe ID of the event this ticket belongs to.
typeThe ticket’s associated ticket type.
typeIdThe ID of the ticket’s type.
skuThe SKU (Stock Keeping Unit) of the ticket.
quantityThe quantity of this ticket.
priceThe listing price of the ticket.
availableFromThe date from which this ticket is available for sale.
availableToThe date until which this ticket is available for sale.

Methods#

MethodDescription
getCpEditUrl()Returns the URL to edit this ticket in the control panel.
getPurchasedTickets(lineItem)Returns all Purchased Tickets associated with this ticket for a given line item.
getIsAvailable()Whether this ticket is available for purchase. This will be true unless the 'Available From/To' dates do not match the current time, or if the ticket has been fully purchased.

Previous ← Ticket Type Next Purchased Ticket →