Support

Home Forums Event Espresso Premium Can I alter the invoice on EE4

Can I alter the invoice on EE4

Posted: March 17, 2014 at 6:36 pm

Viewing 15 reply threads


pathways

March 17, 2014 at 6:36 pm

Hi

I could alter the invoice template on EE3 to suit our needs by changing some coding in the gateway folder. There doesn’t seem to be such folder in EE4. Can anyone help?

Also, when is the eway add on for EE4 likely to be available?


Lorenzo Orlando Caum

  • Support Staff

March 18, 2014 at 8:52 am

Hi Ashley, currently there are some limitations on what can be changed on the invoice. If you are wanting to adjust the wording then you may be able to use a filter for WordPress gettext:

https://gist.github.com/joshfeck/4962940

For editing the payment instructions, this can be done through the settings page for the invoice on the payment settings screen.

Unfortunately, I do not have an estimate on when eway payments will be available for Event Espresso 4.


Lorenzo


pathways

March 18, 2014 at 3:38 pm

Thanks,

I would like to edit the following:
– The title ‘INVOICE’ to say ‘TAX INVOICE’ (Australian Tax purposes)
– Date format to be DD-MM-YYYY instead of YYYY-MM-DD
– ‘Transaction ID’ title to say ‘Invoice Number’
– ‘VAT/TAX Number’ title to say ‘ABN’
– ‘sales tax’ title to say ‘GST’
– ‘*taxable items’ title to say ‘excluding GST’

Can you advise if this is at all possible? And if so how to achieve it?


pathways

March 18, 2014 at 4:18 pm

Given there isn’t an ETA on Eway we have decided to stick to EE3 for now.

I am now altering the invoice coding.

For this I require the following:

– ‘Invoice Payments’ to say ‘Tax Invoice’

Also, the table needs to have:
Total before GST
The amount of GST
Total Including GST

could you advise which lines and coding I need to make these changes?

Thank you


Sidney Harrell

March 19, 2014 at 7:23 am

For the ‘Invoice Payments’, it’s actually in the invoice settings. Open up EE->payment settings, and if it isn’t active already, activate the invoice gateway. You’ll find that string in one of the settings fields.
I’m not exactly sure about the GST, but you can take a look in gateways/invoice/template.php (if you are going to modify it, best to copy the invoice folder from plugins/event-espresso/gateways to uploads/espresso/gateways first) at around line 187. It looks like $total_orig_cost is available there as well.
You also may want to look at Dean’s invoice template modification for VAT support. That may be along the lines of what you are looking for. You can find it here.


pathways

March 19, 2014 at 1:52 pm

Thanks the coding is great. The date format is M-D-Y I’ve altered it to d-m-y on lines 253, 295 & 298 but its still appearing as m-d-y


pathways

March 19, 2014 at 2:07 pm

Also with the VAT… It is saying mine is $0.00 instead of 10%?


pathways

March 19, 2014 at 6:48 pm

Please ignore my two comments above I have fixed those problems.

Is there anyway I can increase size of the logo on the PDF? I’ve increased the size of the image itself but there must be a maximum size in the coding because it doesnt get any bigger. It contains text and its too small to read.


pathways

March 19, 2014 at 6:51 pm

Ignore that, I have changed the size also!


pathways

March 19, 2014 at 8:18 pm

I almost have the invoice looking satisfactory. There are just a couple of things that I need assistance altering:

1) The attendee postcode does not appear. I’ve created a new question called postcode (Australian) instead of zip and changed the coding to reflect this but it isn’t appearing.

2) Spacing between the Bill to information and the table.

3) Less space between the table and the payment instructions.

4) I’d like to get rid of the grey shading behind the GST if possible.

Here is what it currently looks like and the changes outlined: http://pathwaysaustralia.com.au/wp-content/uploads/31-Reeve-27-1.jpg

Any assistance would be very much appreciated.

Here is a document with the coding if you could tell me where I need to make changes to amend the errors listed above that would be very helpful.
http://pathwaysaustralia.com.au/wp-content/uploads/EE-coding.pdf

I really appreciate your assistance.


Josh

  • Support Staff

March 20, 2014 at 12:13 pm

Hi Ashley,

It may work out better to use the zip code field because it’s a system question. It can be relabeled to read as Postcode instead.

With the spacing, where ever you see the cell() function the first two parameters control the cell’s width and height, and text can be aligned left, center, or right. Here’s a link to FPDF’s documentation that you can use as a guide:

http://www.fpdf.org/en/doc/cell.htm

The gray shading is from line 206 of customized file. In the future I’d recommend posting the actual code in a github gist or into a pastebin where you can post a link to the actual code. A PDF image of PHP code is not easy to read, scan though, or search.


pathways

March 20, 2014 at 4:47 pm

Thank you that document was very helpful. Apologies, In future I will post the actual code.

I deleted my ‘postcode question’ as suggested and edited the system question ‘zip’ as you suggested. I clicked update question after changing the name and unfortunately it removed the whole question!? Very strange as you cannot delete system questions but it is definitely gone! I now only have 9 system questions:
– First Name
– Last Name
– Email
– Address
– Address 2
– City
– State
– Phone
– Country

Can you tell me how to get it back as I will need it for the invoice 🙂

Thanks for all your assistance.


Josh

  • Support Staff

March 21, 2014 at 1:10 pm

Hi Ashley,

What you can do is create a new postal code question in the EE Questions manager, then go into phpmyadmin and set it to have “zip” as its system_name value. Most host c-panels will have phpmyadmin installed.

Here’s a screenshot of what the table row will look like.


pathways

March 23, 2014 at 3:44 pm

That’s fantastic. All done. I very much appreciate your assistance.

Now that I have everything looking correctly I tested the functionality and found an error in the above template: “You also may want to look at Dean’s invoice template modification for VAT support. That may be along the lines of what you are looking for. You can find it here.”

Unfortunately this template won’t calculate for multiple registrations.

Please find document with steps and print screens so you can see what I mean: http://pathwaysaustralia.com.au/wp-content/uploads/Registration-Steps.docx

I thought I may have accidentally altered it when I was making my changes so I have restored it back to this original template without my modifications and it still only producing a total for one participant.

Could you advise where the error is in this template suggested to me.

I promise this is the last thing! 🙂 Thank you


Dean

March 25, 2014 at 5:58 am

Hi,

See here – https://eventespresso.com/topic/error-on-invoice-total/#post-88223


Josh

  • Support Staff

November 28, 2018 at 9:34 am

Also, when is the eway add on for EE4 likely to be available?

An eWAY gateway for Event Espresso 4 is now available as a free plugin. You can download it here:
https://wordpress.org/plugins/eway-payment-gateway/

Viewing 15 reply threads

The support post ‘Can I alter the invoice on EE4’ 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