Support

Home Forums Event Espresso Premium customising pdf invoice

customising pdf invoice

Posted: February 26, 2013 at 8:25 am


iaeon

February 26, 2013 at 8:25 am

Re changes to the invoice: There is now a ‘pay online’ link on the PDF and this in my case leads to the ‘thank you’ page which has the [ESPRESSO_PAYMENTS] short code. This does not offer an option of paying even for unfinished transactions…?

Also odd now is the appearance of A? (an accented capital A) ahead of the currency symbol (GBP or pounds sterling in my case).

Can the ‘pay online link’ optionally be hidden?


Chris Reynolds

  • Support Staff

February 26, 2013 at 10:26 am

You can modify the invoice template, which is located in /gateways/invoice/template.php and move the modified file to /wp-content/uploads/espresso/gateways/invoice/template.php. The template file is a pain to dig through but if you do a search it should be easy enough to find the pay online link and just comment it out (by placing // in front of the line). That would be the easiest solution.

Re: the  character — what version of Event Espresso are you running and do you already have an invoice gateway in your uploads folder? It should be displaying GBP.


iaeon

February 26, 2013 at 3:01 pm

Hi Thanks for the pointer.. I am running Event Espresso – 3.1.30.7P No template.php file in the /uploads/.. folder. (I imagine I would have to ‘move your files’ in the developer section of payment gateways for this to work?) Anyhow, not clear why the odd accented A character is in front of the £ currency symbol.

Ideally on my other issue if I could get a useful link to work behind the ‘pay online’ link this on the .pdf that would be better.


Dean

February 27, 2013 at 4:37 am

Re changes to the invoice: There is now a ‘pay online’ link on the PDF and this in my case leads to the ‘thank you’ page which has the [ESPRESSO_PAYMENTS] short code. This does not offer an option of paying even for unfinished transactions…?

You could also change the General Settings option “Show payment options for “Pending Payments” on the Payment Overview page?” to Yes and this will show the payment options on that page.


iaeon

February 27, 2013 at 5:26 am

Thanks for that Dean – should have spotted it! Now the remaining issue is the odd accented capital A appearing just before the GBP currency symbol on invoices (e.g. A?£1.00 ). This did not happen prior to upgrading EE so not sure where to look to fix it. Ideas?


Dean

February 27, 2013 at 5:32 am

Hi,

As Chris mentioned, it should display GBP rather than £. Reason for this is we have had many encoding issues with currency symbols in the PDF generator we are using.

Therefore I can only assume you have manually edited the files to change it to the £ sign. I would suggest changing it back. Yes it isnt ideal, we do understand that but it is perhaps better than the weird A.

Going forward we want to move away from the system we are using for the invoice templates so in future this shouldnt be an issue.


iaeon

February 27, 2013 at 5:43 am

Ah OK – I had failed to understand that was what Chris meant. I have not edited any EE files though? If we cannot figure why the invoice is not displaying the currency symbol or GBP correctly is there some way I can force ‘£’ or ‘GBP’ to display by editing the invoice template directly? And is it correct that in order to edit the invoice I would have to ‘move your files’ in the developer section of payment gateways?


Dean

February 27, 2013 at 6:00 am

Hi,

Re the weird A I have just installed a fresh version of EE to test this out myself and can confirm it is showing the weird A as default. But it shouldn’t be. Ill get a dev ticket raised to look into it.


iaeon

February 27, 2013 at 8:11 am

Thanks Dean – let me know when there is a fix or workaround.


Josh

  • Support Staff

February 27, 2013 at 9:34 am

Hi there,

This has come up before, and the best I can suggest for now is change the character encoding for the invoice. Please see this related topic for step by step instructions on how to change this:

https://eventespresso.com/topic/pdf-invoices/#post-32576


iaeon

February 27, 2013 at 9:52 am

Hi, Yes changing ‘UTF-8’ for ‘ISO-8859-15’ on line 6 of gateways/invoice/function.pdf.php sorts it. Thanks.

The support post ‘customising pdf 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