Posted: October 6, 2012 at 3:05 am
|
Hi. Long time interested in Event Espresso. Long time waited for 3.2 but yesterday already purchased “as is”. And I`m happy with script generaly – smooth install and customisations, already have custom ticket, mobile app do its job etc ๐ But have some problems too: Event ticket generates in HTML ok: http://pesciujuzygiai.lt/?ticket_launch=true&id=1&r_id=1-506f11b98f723&html=true but in PDF – http://pesciujuzygiai.lt/?ticket_launch=true&id=1&r_id=1-506f11b98f723&&pdf=true – without special chars ๐ I found few forum posts about this problem and long lasting promises to find solution. Maybe already something known? Another question – I need to add one more shortcode to Ticket: [payment_status] and show “Completed” or not on ticket. I already customised template for list attendees with “$payment_status = $attendee->payment_status;” to get shown status in list. But how to add this to ticket? I dont afraid custom coding of php, just still cant find where to start, need some advises ๐ One more thing – where to customise shortcode [cost], cause i need to move currency symbol from left to right, after amount ๐ Cheers |
The special character issue with the PDF generator was much improved after the ticket system was switched over to DOMPDF. I’ll need to check with the dev team to see what could be causing the issue you’re having in the specific case. Here is another thread that walks through how to create a new shortcode to the ticket display: You can move the currency symbol over for the [cost] shortcode in espresso-ticketing/functions.php line 337. |
|
|
Thank a lot! I made new shortcode for ticket and moved currency symbol. Now just waiting for any news that to do with PDF encoding errors. Cheers |
@Danius — We need to be able to see examples to properly troubleshoot and try to reproduce this on our test environments and both those links now do not work. Can you possibly post the PDF somewhere or send a link to some new ticket examples so we can take a look again? |
|
|
Ups, sorry for that ๐ I just testing events / tickets by myself and deleted first ones, just forgot about link posted here ๐ New link for ticket example: http://pesciujuzygiai.lt/?ticket_launch=true&id=2&r_id=1-507298acb4198&html=true And printscreens to show all ok look as UTF-8 html: and encoding problems in pdf: and event worse in Invoice – it skips all our language special characters, lik ? / ลก / ? / ลพ and dont show ANYTHING, just empty space :/ Example – our organization name is “P?s?i?j? ลพygi? asociacija” and Invoice shows only first one letter of it… P |
|
Again new ticket: http://pesciujuzygiai.lt/?ticket_launch=true&id=4&r_id=1-507413a7226fd&html=true And one more problem – cant understant this I mess up something with code or what, what yesterdy everything in ticket look like in screenshots above, but today – shortcodes shows wrong data: the code [ticket_type] shows cost… [cost] shows payment_status data :/ |
I will look into this and do some testing to see if I can reproduce the issue. I will say that the invoices use a completely different PDF generator that does not support UTF-8 characters. That’s a hard limitation which was the reason for moving to DomPDF for everything — we just haven’t migrated the invoices to that system yet so we’re currently using 2 different PDF generators. |
|
I was able to reproduce the issue on my test site. One thing you can do, is instead of saving the PDF, you can advise people to click on the Print Ticket link. In Chrome, at least (not sure about other browsers) there’s an option to save it as a PDF, and that works fine. It’s just the UTF-8 conversion to PDF that’s being a problem. I will open a ticket for this issue and we’ll try to get a fix into an upcoming release. |
|
|
Yes I know that in worst case I just left “Print” button. But this is not a solution ๐ Much better to save PDF to own computer/usb flash memory etc. As we allways do with flight tickets etc. And Save as PDF in Chrome is only plug-in – i CANT tell people to install anything additional to get pdf. Its stupid. People are just users. They dont want anything complikated. They just want register and get ticket. |
I understand. Unfortunately, that’s all I can offer until we’re able to address the issue. |
|
|
Its ok, I have ~4-5 month till first our events and we together can do a lot of impovements ๐ Now still somewhere left currency symbol code – you referred where to change in ticket and it works. But now, maybe because I to much look at this script already to many days :), cant find where to change currency position on: event_list_display.php – event_espresso_get_price($event_id) shows lt50, i need to get shown 50 lt ๐ |
Try using |
|
The support post ‘UTF & [payment_status] & currency symbol in Ticket’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.