Support

Home Forums Event Espresso Premium Invoice Formatting Messed Up

Invoice Formatting Messed Up

Posted: February 17, 2017 at 10:36 am

Viewing 6 reply threads


Chester Bowl

February 17, 2017 at 10:36 am

Hi there. I’m using EE3 with the Invoice payment gateway, but the invoice table formatting is all messed up on the 2nd page. We expect our invoices to go 3-5 pages (40 camp days, with up to 4 siblings registering for each day separately), so I’m imagining it will get even worse for those cases. Please help!

Also, when I upload a logo to use on the invoice it’s so large that it covers the billing address and bill to name. Reducing the size of the logo doesn’t help.

Sample PDF at: michellenephew.com/storage/Invoice_2208_summer-559-588dec19b830c.pdf

Thanks!


Josh

  • Support Staff

February 21, 2017 at 10:38 am

Hi there,

You can force a new page break after x number of rows to avoid the formatting issues in the table. Here’s how to do that with Event Espresso 3:

1) You copy the entire invoice folder from wp-content/event-espresso/gateways and put the copy into
/wp-content/uploads/espresso/gateways.

2) You replace the /wp-content/uploads/espresso/gateways/invoice/function.pdf.php file with this file:

https://gist.github.com/joshfeck/93163bc615efbff350cf52d3e3288332

With regards to the logo for the invoice, where may I download a copy of the logo image that you’re using so we can investigate further?


Chester Bowl

February 21, 2017 at 11:20 am

Thanks for the fix. Here’s a sample of the logo problem: http://www.michellenephew.com/storage/Invoice_1092_summer-559-588dec19ac729


Josh

  • Support Staff

February 21, 2017 at 11:44 am

The logo image file is actually what we need.


Chester Bowl

February 21, 2017 at 1:17 pm

http://www.chesterbowl.org/wp-content/uploads/2017/01/ChesterBowlLogoALT.jpg


Josh

  • Support Staff

February 21, 2017 at 1:41 pm

OK thank you. So in your copy of the function.pdf.php file, on line 15, you’ll see this code:

$this->Image($invoice_payment_settings['image_url'],10,8,90);

You can change the 90 to be 33:

$this->Image($invoice_payment_settings['image_url'],10,8,33);

Then you save the file.


Chester Bowl

February 21, 2017 at 2:31 pm

That worked. Thanks much!

Viewing 6 reply threads

The support post ‘Invoice Formatting Messed Up’ 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