Monday, August 5, 2024
1 change · saas-17.4
Resolved issues and error corrections
Event registration communications and tickets are now clearer and more reliable. PDF tickets avoid awkward time formatting, confirmation pages have working add-to-calendar buttons, and event emails better highlight ticket access and QR codes.
Original PR description
1. [FIX] event: prevent line-break in datetimes in pdf ticket Reintroduced in the commit b864c9455f72f95dc1355b7bef902e1d9a2d70a5, datetimes in the pdf full page ticket had sometimes a strange line…
1. [FIX] event: prevent line-break in datetimes in pdf ticket
Reintroduced in the commit b864c9455f72f95dc1355b7bef902e1d9a2d70a5,
datetimes in the pdf full page ticket had sometimes a strange
line break inside their string.
For instance "5.00 [LINEBREAK] PM".
The cause was not identified as the issue did not happen locally
and only in the pdf version of the ticket (not in the html
responsive one). However, forcing no line break on those fields
worked as expected. (The class was added on every of them to be
safe as testing all locale is not possible)
Task-4088465
worked as expected. (The class was added on every of them to be
safe as testing all locale is not possible)
2. [FIX] website_event_sale: make add to calendar buttons work
Reworked in commit fe3a54027ac299389c1b3b799c5a01e7c0b12c15,
The buttons allowing the user to add the event to
outlook or google calendar on the shop confirmation page used
an url that was not defined on that page. So they did not do
anything when clicked.
Add in _prepare_shop_payment_confirmation_values missing values
for each event on the page.
3. [IMP] event: align confirmation and reminder templates (and logo)
- In order to display the important information in the reminders,
the button 'View Events' is replaced with 'View Tickets' using
similar logic as the one in the confirmation. The display is also
aligned
- The qr code is displayed in the top right of the body.
Also, as the qr code is 100px with a white band around it, and
logo was 80px, I added a 10 px margin right on the logo to make
their centers aligned. Both in confirmation and reminder templates.
Existing upgrade script in 17.4 will upgrade the mail templates even
if they are under noupdate=1.
Task-4088465