Posted: May 16, 2016 at 2:45 am
|
Hi – I am setting up event espresso now for a client and it is working great in general, but we have 2 queries I hope you can help me with: 1. The ‘registration approved’ email the attendee gets. It has wording in it like: 2. The PDF invoice that the system generates won’t open (tested on a few computers). Gives an error message about file format… Thanks for your help. Barry |
Hi Barry,
Yes that can be edited within the messages system. Event Espresso -> Messages -> Default Message Templates (tab) In the list find the ‘Registration Approved’ message. Each message template can have multiple ‘contexts’ in which it is used. For more information on working with message contexts, view here: https://eventespresso.com/wiki/messages-system-working-with-message-contexts/ You want the ‘registrant’ context – http://take.ms/R5XRR From here you can change the registration approved message that is sent to the registrant. The example you provided is from custom questions which are handled within the ‘QUESTION_LIST’ section – http://take.ms/Emhuj Each custom question is loops over and that section is used to output the details. So in your example you just want: Save the template and retest.
Most likely something is being output to the PDF that is not expected. Can you link me to either an event I can register on to download the PDF, or the thank you page of a completed registration were I can download the PDF from please. |
|
|
Hi Tony, Thanks for the reply, I will check out the templates later. Here is a link to a free test event: http://dizzyfeet.ie/events/test-event/ regards, Barry |
Hi Barry, There are warnings being output at the begging of the PDF which are breaking the PDF format:
Do you currently have WP_DEBUG enabled currently? If so I would recommend using this code: https://gist.github.com/Pebblo/4486cc5e567bc8e5f019b6a1d5057eda Which tells WordPress to log the errors within a debug.log file rather than output them to the page. That will allow the PDFs to work (and you don’t want the server errors output on a live site) Do you have another plugin that generates PDFs at all? |
|
|
Hi Tony, No, I don’t have WP_DEBUG in use (set to false). And unfortunately no other plugins which generate PDF’s. I can install one if you recommend one, in order to test? |
Hmm, in that case it looks your server is set to display errors anyway. Within your wp-config.php file add:
Outside of the WP_DEBUG conditional, like this:
The ini_set should force your server to stop outputting the errors to the page.
No, I’m wondering how your are getting that error currently. It means there are two elements being passed to DOMPDF that have the ID of Invoice. DOMPDF is much more fussy about valid HTML than your browser, so it complains. But looking at the HTML output of the PDF there is only a single element with that ID, so I thought it may have been a conflict with another plugin using DOMPDF. |
|
|
Hi Tony, That has done the trick, so Pdf output is working fine now. Many thanks for your perseverance! regards, Barry |
You’re most welcome 🙂 Any further problems please let us know. |
|
|
Hi again, Is there any way to edit the content of the PDF invoice? thanks, Barry |
Yes, you can edit the template within: Event Espresso -> Messages -> Default message templates -> Invoice. Click on the ‘recipient’ link to edit the template and make any changes you prefer. (Note how I mentioned DOMPDF is fussy about HTML, be sure your changes using valid syntax to keep your PDFs working as expected) |
|
|
Thanks Tony, I think I have that sorted. Another question, is it possible to change the date format to european, DD/MM/YYYY, instead of MM/DD/YYYY? Thanks. |
Hi Barry, Where are you wanting to change the date format? For example, is this on the event page or in an email or somewhere else? — |
|
|
Hi Lorenzo, It is in the PDF and the email notification that both the client and the attendee get. Barry |
Hi Barry, Could you go to WP-admin (WP dashboard) –> General Settings and then select the updated date format? The date in the messages system will then use that format. Before: http://cl.ly/1C3k0S003J3D After: http://cl.ly/1L243t113R3e — |
|
Hi Barry, Could you go to WP-admin (WP dashboard) –> General Settings and then select the updated date format? The date in the messages system will then use that format. Before: http://cl.ly/1C3k0S003J3D After: http://cl.ly/1L243t113R3e — |
|
The support post ‘Email layout and PDF problem’ 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.