Posted: 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? |
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. — |
|
|
Thanks, I would like to edit the following: Can you advise if this is at all possible? And if so how to achieve it? |
|
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: could you advise which lines and coding I need to make these changes? Thank you |
|
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. |
|
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 |
|
Also with the VAT… It is saying mine is $0.00 instead of 10%? |
|
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. |
|
Ignore that, I have changed the size also! |
|
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. I really appreciate your assistance. |
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. |
|
|
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: Can you tell me how to get it back as I will need it for the invoice 🙂 Thanks for all your assistance. |
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. |
|
|
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 |
|
Hi, See here – https://eventespresso.com/topic/error-on-invoice-total/#post-88223 |
An eWAY gateway for Event Espresso 4 is now available as a free plugin. You can download it here: |
|
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.