Support

Home Forums Event Espresso Premium Invoice template – It doesn't appear to effect the actual invoice…

Invoice template – It doesn't appear to effect the actual invoice…

Posted: May 9, 2013 at 6:10 pm


Andrew Tovey

May 9, 2013 at 6:10 pm

So I’m aware that custom modification isn’t a topic for standard support. I’ve been trying to modify the basic invoice template and have found some existing discussions on the subject. However ny issue seems to be something more fundamental, which is why I’m posting here.

Nothing I change in the template.php file for the invoice has any effect upon the invoice that I can download. I started by changing little bits of text.I have added whole blocks of code. I have entirely changed the file with an update patch that someone linked to on Git Hub (to add in VAT). I have even, in a final attempt to check whether there is any relationship between this file and real life, renamed the file. There is NO CHANGE at the front end.

I should point out that each time I change something I am deactivating the Invoice option in admin and then reactivating. Is there something obvious that I am missing?


Josh

  • Support Staff

May 10, 2013 at 4:27 pm

Hi Andrew,

What is the exact location of the template that you are modifying? You can try copying over the /event-espresso/gateways/invoice folder so that the invoice folder is in /wp-content/uploads/espresso/gateways and it will load from there.


Andrew Tovey

May 12, 2013 at 8:01 pm

Hi Josh

I have done precisely what you said with regards to moving the file. There is no change to the PDF output. Just to check, I have tried renaming the template.php file, just to see if it throws an error. No effect. I don’t know what’s happening but the invoice pdf is not referring to any the files I’ve been looking at and relating them to uploads has made no difference. Is there somewhere else that the pdf might be referring to?


Dean

May 12, 2013 at 11:59 pm

Hi Andrew,

The most likely issue is simple yet unintuitive.

When you copy the template.php over to uploads/espresso/gateways/invoice you also need to copy the index.html file. This is standard with a lot of the copy overs, like ticketing etc.

Also, to avoid errors in the invoice when it is downloaded, you need to copy over the function.pdf.php file.


Andrew Tovey

May 13, 2013 at 3:33 am

Hi Dean

Sorry, should have clarified – I did do exactly as Josh said to and moved the whole folder (not the file only, as I accidentally wrote above). The /event-espresso/gateways/invoice folder, and all of contents, has been moved to uploads/espresso/gateways/invoice. The issue remains – these files have no effect on my pdf. Like I say, I can change the name of the files and there are no errors. Wherever the PDF is relating to, it is not this location or these files. Any more thoughts?


Dean

May 13, 2013 at 3:35 am

Is it possible to get your login details in order to look into this?

If so, please send them via https://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level & FTP details


Andrew Tovey

May 13, 2013 at 3:47 am

Done – and thanks. I look forward to your response – probably something very simple I’m sure


Josh

  • Support Staff

May 13, 2013 at 11:40 am

Hi Andrew,

Dean was not able to log in via FTP with the credentials you sent. There may be a file permissions issue where the /wp-content/uploads/espresso/ directory isn’t allowing WordPress to read it. You may need to adjust the file permissions for the directory where you’re trying to make customizations. You might even try placing your customized invoice template within the event-espresso plugin’s gateway directory.


Sidney Harrell

May 13, 2013 at 11:40 am

You may need to deactivate and reactivate the invoice gateway after you copied the folder over to uploads. Otherwise, it may still be pulling from the copy in plugins/event-espresso/gateways.

The support post ‘Invoice template – It doesn't appear to effect the actual invoice…’ 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