feat: PDF ticket generation

- Each ticket has a unique URL for viewing and downloading
- Only the ticket owner can access their ticket
- The customer's name is clearly displayed on the ticket
- The PDF can be downloaded directly from the ticket view page
- All existing functionality continues to work as expected
This commit is contained in:
kbe
2025-09-05 21:19:41 +02:00
parent 01b545c83e
commit a984243fe2
6 changed files with 135 additions and 11 deletions

View File

@@ -118,7 +118,7 @@ export default class extends Controller {
await this.storeCartInSession(cartData);
// Redirect to event-scoped orders/new page
const OrderNewUrl = `/events/${this.eventSlugValue}.${this.eventIdValue}/orders/new`;
const OrderNewUrl = `/orders/new/events/${this.eventSlugValue}.${this.eventIdValue}`;
window.location.href = OrderNewUrl;
} catch (error) {
console.error("Error storing cart:", error);