Support

Home Forums Event Espresso Premium Several Issues With The Invoice PDF Generation

Several Issues With The Invoice PDF Generation

Posted: December 10, 2013 at 1:01 am


Tony

  • Support Staff

December 10, 2013 at 4:58 am

Hi Thomas,

There have been many improvements to Event Espresso since 3.1.30.7, some of which could possibly solve issues 1, 2 & 3.

Personally I would advise updating to the latest versions of both Event Espresso and WordPress. Make sure you have a full backup (both files and database) before updating, we have a guide posted here

https://eventespresso.com/wiki/how-to-back-up-your-site/

Otherwise

1) This I’m unsure of, I will look into it and get back to you.

2) If you go to Event Espresso -> Payment Settings. Invoice Settings and look in the address field, can you see the br tags there? If so remove them and save the settings.

3) That value of $invoice_payment_settings[‘image_url’] is set in Event Espresso -> Payment Settings -> Invoice Payment Settings. Logo URL. Has that been set?

4) It looks like none of the custom questions are pulled from the the database currently, you would therefore need to write a custom query to retrieve the data within the invoice.

5) There is a template available for use when calculating VAT, available here:

https://eventespresso.com/wiki/using-a-custom-invoice-template-to-support-vat/

6) Sequential invoice numbers is not something EE features within core. There is the attendee ID which is sequential (First attendees gets an ID of 1, then 2 etc) but I’m unsure if this will suite your use?


Thomas

December 17, 2013 at 2:31 am

Hello Tony,
I have updated to the latest WP&EE version, but none of the issues mentioned above is solved. The invoice PDF still looks creepy.


Arjan Mulder

December 17, 2013 at 7:30 am

Hi Tony,

I have few of the same problems as Thomas.

#2 I have those HTML-tags too
#3 When I’m uploading the image, it won’t appear in de backend and when I generate a PDF invoice it’s also not there.

An other question, where can I change the order of the invoice adress from the sender?


Sidney Harrell

December 17, 2013 at 10:20 am

It looks like the code that displays and saves the ‘Address to Send Payment’ field in the invoice settings has been changed to fix the problem with the tags in the invoice. If you go to your invoice settings, adjust the address and resave it, it should resolve that problem.


Arjan Mulder

December 18, 2013 at 12:53 am

I tried, but I still see the HTML tags. Where can I change the code of the “Address to Send Payment”? Which file?


Tony

  • Support Staff

December 18, 2013 at 2:12 am

@thomas Beham

Can you go go to Event Espresso -> Payment Settings.
Find Invoice Payment Settings and check if any br tags are visible in the fields? If so remove them and save the settings.

http://d.pr/i/T2kW

That should fix issue 2.

Whilst in the same area, have you setup the Logo URL there also?

@Arjan Mulder

Could you try the same steps above. If you still have issue’s please open your own thread with a description of what you’ve tried so far. Modifying files for this issue should not be needed.

It is usually best to open up your own thread for any issues you may have as otherwise it gets confusing for anyone reading to follow πŸ™‚


Arjan Mulder

December 18, 2013 at 4:12 am

Thnx Tony, everything works and I can’t change issue 2.

Okay, I’m sorry. I will.


Tony

  • Support Staff

December 18, 2013 at 6:37 am

No apologies needed πŸ™‚

Just helps us to help you and keep things nice an easy to follow.


Thomas

December 18, 2013 at 7:52 am

None of the issues are solved so far, though I have re-saved the settings. Just to be precise: I am not talking about general invoice settings, but it refers to the Electronic Funds Transfer via the bank account details.

The logo shows up correctly in the General Settings, but it does not show up neither in the Electronic Funds settings nor in the final PDF invoice.

Here are the General Settings where the address is defined:

Here are the payment settings of the Electronic Payment:


Thomas

December 18, 2013 at 7:53 am

Somehow the img tags did not work out, so here are the URLs:

http://nathal-sarti.solusio.com/wp-content/uploads/2013/12/generalSttgs.png

http://nathal-sarti.solusio.com/wp-content/uploads/2013/12/pmntsttngs.png


Josh

  • Support Staff

December 18, 2013 at 7:17 pm

Hi Thomas,

It turns out that the EFT payment option does not have an invoice feature. In order to use the invoice feature you will need to activate the invoice payment option.


Thomas

December 19, 2013 at 1:08 am

Hello Josh,

Thanks for pointing that out, now the invoice looks better.

1) Special Characters
While the City appears correctly with its German special characters, the Street still shows encoding problems in the PDF, but I found no way how to influence the encoding of particular address details.
Tony said he would look into it, any news on that?

2) Formatting
The business details show now correct formatting.

3) Logo
Though the JPG logo’s width is 450px, it shows up quite small on top of the PDF. It seems that it is bound to the width of the left-hand address blocks.
How can I change that in order to make the logo appear with its real width?

Regarding the issues 4)-6) I understood that this is something I need to look after by myself, correct?

Is the invoice payment option intended to be the only payment option which supports the PDF invoice generation, or will it be ported to other payment options in the future?

Cheers, Thomas


Tony

  • Support Staff

December 19, 2013 at 6:46 am

Hi Thomas,

1) The address details for the invoice are created in event-espresso/gateways/invoice/template.php line 41 – 42

They are currently UTF-8 encoded.

I have created a ticket for a developer to look into the issue.

3) I would advise against modifying these values but event-espresso/gateways/invoice/function.fpdf.php line 15.

If you are editing the values I would recommend you copy the invoice folder and place it within wp-content/uploads/espresso/gateways/ in order to stop any EE updates overwriting the files.

4-6) Currently yes.

Currently the invoice gateway is the only one yes however you can include [invoice_link] within your confirmation emails which will allow any users to view the invoice regardless of payment method.

The support post ‘Several Issues With The Invoice PDF Generation’ 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