Support

Home Forums Ticketing Add-on UTF & [payment_status] & currency symbol in Ticket

UTF & [payment_status] & currency symbol in Ticket

Posted: October 6, 2012 at 3:05 am

Viewing 11 reply threads


Dainius

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


Josh

  • Support Staff

October 6, 2012 at 1:45 pm

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:
https://eventespresso.com/topic/multiple-tickets-per-booking/#post-11743

You can move the currency symbol over for the [cost] shortcode in espresso-ticketing/functions.php line 337.


Dainius

October 6, 2012 at 3:46 pm

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


Chris Reynolds

  • Support Staff

October 8, 2012 at 11:58 am

@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?


Dainius

October 8, 2012 at 1:01 pm

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:

enter image description here and encoding problems in pdf:

enter image description here 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

enter image description here


Dainius

October 9, 2012 at 6:27 am

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 :/


Chris Reynolds

  • Support Staff

October 9, 2012 at 10:56 am

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.


Chris Reynolds

  • Support Staff

October 10, 2012 at 9:27 am

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.


Dainius

October 10, 2012 at 10:44 am

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.


Chris Reynolds

  • Support Staff

October 10, 2012 at 11:32 am

I understand. Unfortunately, that’s all I can offer until we’re able to address the issue.


Dainius

October 10, 2012 at 3:46 pm

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 ๐Ÿ˜‰


Chris Reynolds

  • Support Staff

October 15, 2012 at 1:50 pm

Try using $all_meta['price']. We only have a generic rule, currently, for currency symbol placement. You could also try using the EVENT_PRICE shortcode, I don’t think that pulls in the currency symbol.

Viewing 11 reply threads

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.

Event Espresso