Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
Feature: Add organizer to tickets (#831)
Dave Earley66e154e3189f
diff --git a/frontend/src/components/common/AttendeeTicket/index.tsx b/frontend/src/components/common/AttendeeTicket/index.tsxindex cb75a732b..e99a1da75 100644--- a/frontend/src/components/common/AttendeeTicket/index.tsx+++ b/frontend/src/components/common/AttendeeTicket/index.tsx@@ -60,6 +60,14 @@ export const AttendeeTicket = ({{prettyDate(event.start_date, event.timezone)}</div></div>+ {event?.organizer?.name && (+ <div className={classes.detailRow}>+ <div className={classes.detailLabel}>{t`Organizer`}</div>+ <div className={classes.detailValue}>+ {event?.organizer?.name}+ </div>+ </div>+ )}{hasVenue && (<div className={classes.detailRow}>@@ -147,7 +155,8 @@ export const AttendeeTicket = ({{t`Print`}</Button>- <CopyButton value={`${window?.location.origin}/product/${event.id}/${attendee.short_id}`}>+ <CopyButton+ value={`${window?.location.origin}/product/${event.id}/${attendee.short_id}`}>{({copied, copy}) => (<Buttonvariant="default"diff --git a/frontend/src/components/routes/event/TicketDesigner/TicketDesignerPrint.tsx b/frontend/src/components/routes/event/TicketDesigner/TicketDesignerPrint.tsxindex 410819a54..64950ae88 100644--- a/frontend/src/components/routes/event/TicketDesigner/TicketDesignerPrint.tsx+++ b/frontend/src/components/routes/event/TicketDesigner/TicketDesignerPrint.tsx@@ -75,7 +75,11 @@ const TicketDesignerPrint = () => {...event,settings: {...event.settings,- ticket_design_settings: settings.ticket_design_settings+ ticket_design_settings: settings.ticket_design_settings,+ location_details: event.settings?.location_details || {+ venue_name: t`Sample Venue`,+ address_line_1: t`123 Sample Street`,+ }},images: images || []};diff --git a/frontend/src/components/routes/event/TicketDesigner/TicketPreview.tsx b/frontend/src/components/routes/event/TicketDesigner/TicketPreview.tsxindex 7e9e0dd6a..26da7b28b 100644--- a/frontend/src/components/routes/event/TicketDesigner/TicketPreview.tsx+++ b/frontend/src/components/routes/event/TicketDesigner/TicketPreview.tsx@@ -4,6 +4,7 @@ import {t} from "@lingui/macro";import {IdParam} from "../../../../types.ts";import {AttendeeTicket} from "../../../common/AttendeeTicket";import classes from './TicketPreview.module.scss';+import {useGetEventSettings} from "../../../../queries/useGetEventSettings.ts";interface TicketDesignSettings {accent_color: string;@@ -21,9 +22,11 @@ interface TicketPreviewProps {export const TicketPreview = ({settings, eventId, logoUrl}: TicketPreviewProps) => {const eventQuery = useGetEvent(eventId);const meQuery = useGetMe();+ const eventSettingsQuery = useGetEventSettings(eventId);const event = eventQuery.data;const user = meQuery.data;+ const eventSettings = eventSettingsQuery.data;if (!event || !user) {return (@@ -80,6 +83,10 @@ export const TicketPreview = ({settings, eventId, logoUrl}: TicketPreviewProps)logo_image_id: settings.logo_image_id,footer_text: settings.footer_text,enabled: settings.enabled+ },+ location_details: eventSettings?.location_details || {+ venue_name: t`Sample Venue`,+ address_line_1: t`123 Sample Street`,}},images: logoUrl && settings.logo_image_id ? [