Posted: September 21, 2017 at 3:46 am
|
Hi, I’m having an issue with the PDF invoice. in that it doesn’t look anything like the html version I have created – it looks as I want in the preview but as soon as I do a test payment and view my invoice it looks like the original unedited version. See below: Thanks
|
|
Realised both links were wrong see here:
|
Hi there, Have you created a custom invoice template or are you editing the default template? |
|
|
September 21, 2017 at 11:19 am Hi Tony, |
Can you link me to an event I can use to view this, please? |
|
|
Hi Tony, link here: http://www.learningandwork.org.uk/events/esscotland17/ Thanks James |
Hi James, So your site is currently using the ‘old’ version of the Invoice system that was used in EE the templates were moved into the messaging system. Previously someone has placed Invoice templates within You’ll have a Either rename the ‘gateways’ directory or within there you’ll see an ‘Invoice’ you can rename, just add In short EE is finding custom templates for the old system within the above directory (if you navigate through the directories you’ll find Then if you retest you should see the ‘new’ invoice system. You can tell if it’s the old system as the Invoice URL starts: The new system will have something like: |
|
|
Thanks for this. Other than renaming the |
Hmm, no that should do it. Try renaming How are you loading the Invoice after making the change? Refreshing the page with an existing Invoice loaded from the old system won’t work. You can reload the transactions page (Event Espresso -> Transactions) and click the link within the actions column to view the invoice. |
|
|
If I do that it pulls the whole site down with the following error: |
Are you editing the directories within the Event Espresso plugin itself?
If so that’s the wrong location.
That’s the location for custom templates. |
|
|
Aah, I didn’t even realise that was doing anything. Thanks so much for your help, that all appears to be working perfectly. Thanks very much Tony |
You’re most welcome. Just to note you never want to edit the core files of a plugin, any modifications made to a plugin’s files will be lost when that plugin updates. I can’t speak for every plugin but EE provides a huge amount of hooks and templates to allow you to change various content and we are very open to adding additional hooks if there isn’t one. Anyway, I’m glad the above is working for you now. |
|
The support post ‘Disparity between layout of invoice in PDF and HTML preview’ 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.