Support

Home Forums Event Espresso Premium Disparity between layout of invoice in PDF and HTML preview

Disparity between layout of invoice in PDF and HTML preview

Posted: September 21, 2017 at 3:46 am

Viewing 12 reply threads


webjuice

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:
Invoice Preview

Invoice actual

Thanks

  • This topic was modified 7 years ago by Tony. Reason: Fixed links formatting


webjuice

September 21, 2017 at 3:52 am

Realised both links were wrong see here:
Invoice Preview

Invoice actual

  • This reply was modified 7 years ago by Tony. Reason: Fixed links


Tony

  • Support Staff

September 21, 2017 at 3:54 am

Hi there,

Have you created a custom invoice template or are you editing the default template?


webjuice

September 21, 2017 at 11:19 am

Hi Tony,
Sorry my notifications didn’t go off.
Yes I have edited the default HTML template
Thanks


Tony

  • Support Staff

September 22, 2017 at 2:20 am

Can you link me to an event I can use to view this, please?


webjuice

September 22, 2017 at 3:03 am

Hi Tony,

link here: http://www.learningandwork.org.uk/events/esscotland17/

Thanks

James


Tony

  • Support Staff

September 22, 2017 at 3:19 am

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 /wp-content/uploads/espresso/.

You’ll have a modules directory and within that a gateways directory.

Either rename the ‘gateways’ directory or within there you’ll see an ‘Invoice’ you can rename, just add -temp to the directory name for now.

In short EE is finding custom templates for the old system within the above directory (if you navigate through the directories you’ll find .template.php files) rename the directory to stop EE loading them and confirm the new system loads correctly.

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: /thank-you/?ee=launch_invoice

The new system will have something like: ?ee=msg_url_trigger&snd_msgr=html


webjuice

September 22, 2017 at 4:06 am

Thanks for this. Other than renaming the /gateways/Invoice directory Would I need to do anything else to get it to use the new version as I have done this and ran a test but it appears to still want to use the old version, the difference this time being that it now shows errors as it’s trying to find the old version:
Fatal error: Uncaught Error: Class 'Invoice' not found...
Thanks
James


Tony

  • Support Staff

September 22, 2017 at 4:11 am

Hmm, no that should do it.

Try renaming modules to modules-temp

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.


webjuice

September 22, 2017 at 4:18 am

If I do that it pulls the whole site down with the following error:

Class 'EED_Event_Single' not found in /var/sites/xxxx/public_html/wp-content/plugins/event-espresso-core-reg/caffeinated/modules/event_single_caff/EED_Event_Single_Caff.module.php on line 24


Tony

  • Support Staff

September 22, 2017 at 4:41 am

Are you editing the directories within the Event Espresso plugin itself?

/wp-content/plugins/event-espresso-core-reg/?

If so that’s the wrong location.

/wp-content/uploads/espresso/

That’s the location for custom templates.


webjuice

September 22, 2017 at 5:06 am

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


Tony

  • Support Staff

September 22, 2017 at 5:10 am

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.

Viewing 12 reply threads

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.

Event Espresso