How to make the QR Code data configurable?

Created on 22 November 2021, about 3 years ago
Updated 31 January 2024, 10 months ago

Problem/Motivation

As exposed in #3246055: Refactor ticket display page and PDF generation , we might want to consider a way for users to configure what's on the QR Code, right now it is hardcoded to the uuid of the ticket and that might be enough for most use cases but some others might want to include other stuff as they see fit, such as seat numbers, ticket holder information or other metadata information.

Proposed resolution

The original proposal could be a display mode "qr_code_data" that renders the information into a JSON encoded string. Probably the best way would be to gather the fields individually and render them in sequence.
Alternatives to this approach are warmly welcomed.

Remaining tasks

Decide and implement :)

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇪🇸Spain pcambra Asturies

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇬Nigeria chike Nigeria

    How can I use this hook to pass the name and phone number of the owner of the ticket, and fields from the product variation, say the label, into the QR code?

    Thank you.

  • 🇳🇬Nigeria chike Nigeria

    I later understood better and was able to use the hook to load the ticket in the browser. I guess this is about all what the hook is meant for? And then whatever other information one wants to make available will be added to the ticket page that loads on the browser?

Production build 0.71.5 2024