Version 3.0.3

November 19, 2024

Changed

  • Update element translations for display names.

Fixed

  • Fix an error for installs that use a database prefix.
  • Fix an error when handling order-creation with legacy ticket purchasables.
  • Fix incorrect checks for some Ticket Type properties, not saving correctly.
  • Fix default “Seats Per Ticket” value for Ticket Types.
  • Fix some translation strings.
  • Fix an error when sorting events via startDate or endDate.
  • Fix ordering by “Is Occurrence” for Sessions.
  • Fix an error when editing the settings of the Purchased Tickets field.
  • Fix “Purchased Tickets” index title not translatable.
  • Fix email link, referring to the Commerce email in the control panel.
  • Fix a migration error for sessions and ticket types.

Version 3.0.2

November 13, 2024

Added

  • Add error handling for when being unable to check in or check out Purchased Ticket.
  • Add before/after check-in/check-out events for Purchased Tickets.

Fixed

  • Fix compatibility with nystudio107/craft-seomatic 5.1.6+.

Version 3.0.1

November 13, 2024

Fixed

  • Fix an Events 2 migration error for sessions and ticket types.
  • Fix Ticket pricing not updating when changing Ticket Type.

Version 3.0.0

October 31, 2024

This release introduces Sessions and re-purposed Ticket Types. As such, it's a major architectural change to how you structure events, which should be largely intuitive. All your existing events and tickets will be migrated. Read through the changes here.

Added

  • Add Sessions inside events to manage multiple dates per Event.
  • Add recurring Sessions to handle your recurring Events. Pick from Once, Daily, Weekly and Monthly.
  • Add GraphQL support.
  • Add the ability to register your own recurring frequency logic.
  • Add helper to events for checking when to automatically generate new Tickets when Sessions or Ticket Types have changed.
  • Add the ability when editing a Session to pick how to update it (just the occurrence, all, future, etc).
  • Add the ability when deleting a Session to pick how to handle it (just the occurrence, all, future, etc).
  • Add Ticket and Purchased Ticket element index tables as custom fields, if you want to attach them to various element screens.
  • Add the ability to set a default time for sessions.
  • Add allowed quantity to tickets types to control the minimum or maximum number of tickets to be purchased.
  • Add download button to purchased ticket interface.
  • Add the ability to attach ticket PDFs to Commerce emails.
  • Add the ability to set the timezone on start/end dates for sessions.
  • Add Events element conditions.
  • Add Purchased Ticket element conditions.
  • Add Promotable field to Ticket Types to control whether tickets should be promotable.
  • Add the ability to set a “Seats per Ticket” setting for tickets.
  • Add Purchased and Available columns for Ticket elements.

Changed

  • Now requires PHP 8.2.0+.
  • Now requires Craft 5.0.0+.
  • Events now no longer house the start/end dates for an event. These are managed in a Session.
  • Ticket Types are now defined in your Event, and have been re-puposed to be more powerful. This replaces what was Tickets in Events 2.x, and is where you define your pricing and capacity.
  • Tickets are now automatically generated for every event, based on the Event Sessions and Ticket Types. Previously, you defined the tickets themselves.
  • Tickets and Ticket Types from Events 2.x have been archived as legacy elements. These are re-created in Events 3.x in their new format.
  • Event capacity is now optional. It can now be used to override the automatically calculated capacity based off Ticket Types.
  • Ticket Type capacity is now required.
  • Checking in a ticket now shows a prompt to check in, rather than automatically checking in a user.
  • Updated the look and content of the check in template.
  • Revamp permissions, include event/session/ticket type view/create/edit/delete permissions.
  • Event element cards now show the event type and start/end date/times of events
  • Deleting a Ticket element is now prevented if any purchased tickets exist.

Version 2.0.7

November 13, 2024

Fixed

  • Fix compatibility with nystudio107/craft-seomatic 4.1.6+.

Version 2.0.6

July 21, 2024

Added

  • Add error handling for when being unable to check in or check out Purchased Ticket.
  • Add before/after check-in/check-out events for Purchased Tickets.

Changed

  • Update English translations.

Fixed

  • Fix some validation errors when saving events.
  • Fix an error when saving events where ticket SKUs were being re-generated.
  • Fix an error importing tickets with Feed Me, and only specifying defaults.
  • Fix an error when saving a new site.
  • Fix an error when creating new events for the non-default site.
  • Fix events always being re-saved when updating a site or force-applying project config.

Version 2.0.5

March 4, 2024

Fixed

  • Fix order of operations when uninstalling the plugin.

Version 2.0.4

January 30, 2024

Added

  • PDFs now support using the current site’s locale language and formatting.

Fixed

  • Fix an error when viewing purchased tickets.
  • Fix type for Ticket::availableQuantity().

Version 2.0.3

January 12, 2024

Added

  • Add Ticket::getShippingCategory(), Ticket::getTaxCategory(), TicketType::getShippingCategory() and TicketType::getTaxCategory().
  • Add setType() for tickets.

Changed

  • Rename Share button to View when editing an event in the control panel.

Fixed

  • Fix duplicated events not duplicating their tickets.
  • Fix incorrect edit link for events.
  • Fix an error when requesting PDF tickets when no order was specified.
  • Fix a Ticket’s Ticket Type not loading the correct site according to the Ticket’s own site.
  • Fix when editing an event - tickets weren’t loaded for the correct site.
  • Fix lack of proper multi-site support when editing events.
  • Fix ticket capacity checks not working for multiple ticket types in cart.
  • Fix incorrectly checking for ticket quantity when using unique ticket line items.
  • Fix being unable to set ticket quantity to null.

Version 2.0.2

November 14, 2023

Changed

  • Allow event types to customise the Title attribute in field layouts.
  • Allow event types to use UI elements in their field layout.

Version 2.0.1

October 25, 2023

Fixed

  • Implement Element::trackChanges() for Blitz compatibility.

Version 2.0.0

October 8, 2023

Added

  • Add missing English Translations.
  • Add resave console command for elements.
  • Add checks for registering events for performance.
  • Add archiveTableIfExists() to install migration.

Changed

  • Now requires PHP ^8.0.2.
  • Now requires Craft ^4.0.0.
  • Now requires Craft Commerce ^4.0.0.
  • Update endroid/qr-code:^4.0.0 dependancy.
  • Use defineRules() instead of rules() to allow validation overrides properly.
  • Update Endroid\QrCode code for new endroid/qr-code package version.
  • Only admins are now allowed to access plugin settings.
  • Memoize all services for performance.
  • Rename record classes.
  • Rename base plugin methods.
  • jsvrcek/ics dependency updated for php 8.0 support.
  • Now requires Events 1.4.20 in order to update from Craft 3.

Fixed

  • Fix an error for Feed Me when no event type is set.
  • Update PDF rendering to use correct events.
  • Fix expired events still showing their front-end templates.
  • Fix type for customer() purchased ticket element query.
  • Fix Customer changeover to User.
  • Fix errors when saving events with invalid tickets.
  • Fix Customer changeover to User (Commerce change).
  • Fix an error when editing an event with validation errors.
  • Fix an error when editing an event.
  • Fix an error when creating an event with empty ticket quantities.
  • Fix an error when deleting an event type.
  • Fix being unable to manage Events and Purchased tickets in the control panel due to Craft 4.3.2 changes.
  • Fix an error when creating an event with an empty capacity.
  • Fix an error running resave console commands.
  • Fix querying events by type not working correctly for multiple ticket types.
  • Fix querying purchased tickets by event type not working correctly for multiple ticket types.
  • Fix an error when uninstalling.
  • Fix being unable to view purchased ticket in the control panel.
  • Fix an incompatibility with SEOmatic.
  • Fix welcome screen icon alignment.
  • Fix project-config/rebuild support.
  • Fix Feed Me support.
  • Fix an error when uninstalling.
  • Fix an error with Craft 4.
  • Fix an error with Commerce.
  • Fix deprecations.

Removed

  • Removed Ticket::getPurchasedTicketsForLineItem.
  • Update minVersionRequired.
  • Remove unneeded migrations.

Version 1.4.27

April 7, 2024

Fixed

  • Fix some validation errors when saving events
  • Fix an error when saving events where ticket SKUs were being re-generated..
  • Fix an issue when creating new sites and not propagating event types correctly.

Version 1.4.26

October 8, 2023

Fixed

  • Fix an issue when creating new sites and not propagating event types correctly.

Version 1.4.25

May 27, 2023

Added

  • Add resave commands for events.

Version 1.4.24

December 25, 2022

Added

  • Add error state to the Date/Time tab if a field has errors. (thanks @anchovy).

Fixed

  • Fix an error when saving an event with un-selected ticket type for a ticket.

Version 1.4.23

September 25, 2022

Added

  • Add validation to event ticket available from/to in relation to each other and the event end datetime.
  • Add validation for events when setting the start date to be later than the end date.
  • Add tabs for events not working correctly in the control panel.

Fixed

  • Fix a validation error with ticket pricing in the control panel.
  • Fix an issue when checkin/uncheckin for purchased tickets wasn’t working.
  • Fix a potential issue when generating QR codes.

Version 1.4.22

August 25, 2022

Fixed

  • Fix querying events by type not working correctly for multiple ticket types.
  • Fix querying purchased tickets by event type not working correctly for multiple ticket types.

Version 1.4.21

June 28, 2022

Changed

  • jsvrcek/ics dependency updated for php 8.0 support.

Fixed

  • Fix PDF generation URLs not being correct in headless environments.

Version 1.4.20

October 30, 2021

Fixed

  • Fix an error with querying customer tickets with sql_mode=only_full_group_by.

Version 1.4.19.2

October 12, 2021

Fixed

  • Fix an error being thrown when SEOmatic wasn't installed.

Version 1.4.19.1

October 5, 2021

Fixed

  • Fix an error when saving a Event type and the SEOmatic integration.

Version 1.4.19

October 1, 2021

Added

  • Add support for SEOmatic.

Changed

  • Update "Ticket PDF Template" plugin setting field to auto-suggest templates.
  • Update "Check-in Template" plugin setting field to auto-suggest templates.

Fixed

  • Fix check-in URL shortcut in control panel (when editing a purchased ticket) not being correct.
  • Fix redirecting back to the purchased ticket index when checking/unchecking in from the control panel.

Version 1.4.18

September 2, 2021

Added

  • Add ticketsShippable plugin setting.
  • Add craft.events.ticketTypes().
  • Add order email to "Customer" column for purchased tickets, when ordered by a guest.
  • Allow custom fields to be saved when calling events/purchased-tickets/checkin.
  • Allow checkedIn and checkedIn attributes to be saved when calling events/purchased-tickets/save.

Fixed

  • Fix customer email column.

Version 1.4.17

July 8, 2021

Added

  • Add “Require User Login” plugin setting for checking-in tickets.
  • Add “Check-in tickets” user permission.

Fixed

  • Fix an error when generating PDFs and custom fonts, where the temporary folder isn’t writable (or created).
  • Fix an error when viewing purchased tickets index where users may not have a first/last name.

Version 1.4.16

June 4, 2021

Fixed

  • Fix an error with purchased tickets when no field layout was set.
  • Fix an error when generating an ICS link and setting the location.

Version 1.4.15

January 15, 2021

Added

  • Add events.edit.details hook to the edit event page. (thanks @joshangell).
  • Add events.edit.actionbutton hook to event edit page. (thanks @joshangell).
  • Add ticketType and ticketTypeId query params to Purchase Ticket elements.
  • Add pluralDisplayName to Event, Purchased Ticket, Ticket and Ticket Type elements.
  • Add duplicate element action for Purchased Ticket elements.
  • Add duplicate element action for Event elements.
  • Add ticketType and ticketTypeId query params to Purchase Ticket element queries.

Version 1.4.14

August 20, 2020

Fixed

  • Fix migration error for older installs where event types had not re-saved to populate ICS settings.

Version 1.4.13

August 15, 2020

Fixed

  • Fix migration error in Postgres.

Version 1.4.12

June 17, 2020

Fixed

  • Allow ticketTypes to be edited with allowAdminChanges set to false.

Version 1.4.11

May 14, 2020

Fixed

  • Fix tickets not being site-aware.
  • Fix potential error for purchased tickets with no ticket.

Version 1.4.10

May 10, 2020

Fixed

  • Fix saving event content in the incorrect site.

Version 1.4.9

May 5, 2020

Fixed

  • Fix checkin controller redirecting incorrectly.
  • Fix site dropdown redirecting incorrectly for events.

Version 1.4.8

April 28, 2020

Fixed

  • Fix typo for Feed Me mapping.

Version 1.4.7

April 16, 2020

Fixed

  • Fix logging error Call to undefined method setFileLogging().

Version 1.4.6

April 15, 2020

Changed

  • File logging now checks if the overall Craft app uses file logging.
  • Log files now only include GET and POST additional variables.

Version 1.4.5

April 14, 2020

Added

  • Add Feed Me support for importing events.
  • Add ICS support. See docs.

Fixed

  • Only allow editing of event/ticket types if editable.
  • Ensure plugin project config is removed when uninstalling.

Version 1.4.4

March 16, 2020

Fixed

  • Allows getting the ticket download via the purchasedTicket id. (thanks @samuelbirch).
  • Use existing ticketSku if not passed when saving purchasedTicket. (thanks @samuelbirch).
  • Fix error in purchasedTicket->getTicketType(). (thanks @samuelbirch).

Version 1.4.3

March 6, 2020

Fixed

  • When generating purchased tickets use serialized field values so that elements etc get regenerated. (thanks @joshangell).
  • Fix incorrect error from failed ticket validation.

Version 1.4.2

February 28, 2020

Changed

  • Updated ticket element sources to match that of purchased tickets. (thanks @samuelbirch).

Fixed

  • Fix fatal migration error.
  • Fix saving of custom fields for a purchased ticket. (thanks @samuelbirch).

Version 1.4.1

February 26, 2020

Fixed

  • Fix purchased ticket custom fields in element index.

Version 1.4.0

February 25, 2020

Added

  • Add un-checkin function for purchased tickets. (thanks @samuelbirch).
  • Add custom fields to purchased tickets (inherited from the ticket's type). (thanks @samuelbirch).
  • Add controller action for manual purchased ticket checkin or un-checkin. (thanks @samuelbirch).
  • Add checkin/un-checkin button on the purchased ticket detail page. (thanks @samuelbirch).
  • Add checkin action to the purchased ticket index page. (thanks @samuelbirch).
  • Upon checkout completion, if a line item option matches the handle of a custom field on a purchased ticket, it'll now push that value onto the custom field. This means you won't have to dive through line item options from now on, instead accessing that info on a purchased ticket element.
  • Add customer email and name to purchased ticket element index table, for viewing event attendees.

Changed

  • Update ticket availableCapacity to return the events availableCapacity if not quantity is not set. (thanks @samuelbirch).
  • Tickets are un-editable by default. (thanks @samuelbirch).
  • Purchased tickets are now grouped by their event type in the control panel. (thanks @samuelbirch).

Fixed

  • Fix some translations in the CP not being to the Events plugin's scope.
  • Fix minor style issue for meta sidebar for purchased tickets

Version 1.3.2

February 2, 2020

Fixed

  • Fix potential errors when no event or ticket exists anymore for a purchased ticket

Version 1.3.1

January 30, 2020

Fixed

  • Fix check-in error when no ticket is found.

Version 1.3.0

January 29, 2020

Added

  • Craft 3.4 compatibility.
  • Commerce 3.0 compatibility.

Version 1.2.1

January 18, 2020

Added

  • Add customer query param to craft.events.purchasedTickets().
  • Add customer query param to craft.events.tickets().
  • Add customer query param to craft.events.events().
  • Add craft.events.hasTicket(order).
  • Add Event name, Ticket name, or Order reference to list of searchable attributes for purchased ticket elements.

Version 1.2.0

January 7, 2020

Added

  • Add purchased tickets screen to CP, showing individual tickets and purchases.
  • Purchased tickets are now elements! Edit and delete purchased tickets is supported.
  • Show purchased tickets in the CP with their quantity, and a summary table below the ticket definitions.

Changed

  • Improve ticket-type custom field display. Now, whenever a ticket type is selected, all ticket type fields are shown, rather than having to save and reload the event.

Fixed

  • Cleanup purchasable options.
  • Fix event types permission.
  • Fix available ticket quantity checks.

Version 1.1.7.1

December 2, 2019

Fixed

  • Fixed typo. (thanks @samuelbirch).

Version 1.1.7

December 2, 2019

Added

  • Add cp.events.event.edit.details template hook. (thanks @samuelbirch).
  • Add better warning when Commerce isn’t installed.
  • Add hasTickets to event types.
  • Add confirm when deleting an events’ ticket type.

Changed

  • No longer override Total Capacity field when changing ticket type quantity.
  • Provide better handling for either event capacity or ticket quantity not being set.
  • Do not include custom fields in ticket snapshot.

Fixed

  • Fix ticket type permissions.
  • Fix ticket check-in not working.
  • Fix error thrown in isTicket.

Version 1.1.6

September 3, 2019

Added

  • Add Check-in template and nicer default template instead of JSON.

Fixed

  • Fix error when running live preview on an event.

Version 1.1.5

August 9, 2019

Fixed

  • Fix incorrect available ticket calculation when adding to cart (again).

Version 1.1.4

August 8, 2019

Fixed

  • Fixed sharing preview not working correctly for anonymous requests.
  • Fix capacity database column set incorrectly, in some cases (upgrading from older plugin versions).
  • Fix lack of total event capacity checks when adding to cart.
  • Fix isAvailable checks on event and ticket incorrectly reporting what’s available.
  • Fix incorrect available ticket calculation when adding to cart.

Version 1.1.3

July 28, 2019

Fixed

  • Fix craft.events.events() not including currently-on events.

Version 1.1.2

July 25, 2019

Added

  • Add support for Klaviyo Connect plugin.

Fixed

  • Fix error when trying to save an event after validation failed.
  • Fix deleting ticket type not deleting associated tickets.
  • Fix error with empty tickets for an event.
  • Allow Commerce 3 to work.
  • Fix invalid element type class being registered for events.
  • Fix error with project config rebuild. (thanks @ttempleton).
  • Fix incorrectly reporting tickets as unavailable.
  • Fix being unable to delete tickets from event.

Version 1.1.1

May 17, 2019

Fixed

  • Fix error thrown when creating new tickets for event.
  • Show an error settings icon when saving an event with required ticket type fields not set.

Version 1.1.0

May 12, 2019

Added

  • Add Title Format to event types.

Changed

  • When calling craft.events.events() in your templates, it will now only show events with a start date after today.
  • Change default sort to be the startDate ascending (oldest first).
  • Tickets are now not required when saving an event.

Fixed

  • Fix incorrect editable event types being returned.
  • Fix error occurring in an events field modal.
  • Add missing startDate and endDate query params.
  • Ensure tickets have a title value.

Version 1.0.2.1

April 30, 2019

Fixed

  • Fix incorrect casing of events.js. (thanks @johnnynotsolucky).

Version 1.0.2

April 30, 2019

Changed

  • Quantity for tickets is no longer required.

Fixed

  • Fix deprecation error.
  • Fix filtering events by event type.
  • Fix errors when trying to view tickets in an element select interface.
  • Fix being unable to add new events in some instances.

Version 1.0.1

April 24, 2019

Fixed

  • Ensure Commerce 2.1 is required.
  • Update endroid/qrcode to endroid/qr-code.
  • Fixed some issues during install.

Version 1.0.0

April 23, 2019

Added

  • Craft 3 version.

Version 0.1.1

July 31, 2018

Fixed

  • Ensure cart-adding supports notes and options.
  • Switch events to be output ascending by default.
  • Fix incorrect references for PDF config files.
  • Fix displaying price incorrectly for some locales.

Version 0.1.0

February 9, 2018

Added

  • Initial beta release.