Support

Home Forums Event Espresso Premium Changing Invoice Settings re date and ID

Changing Invoice Settings re date and ID

Posted: August 21, 2013 at 12:50 am

Viewing 10 reply threads


Sabrina Ferguson

August 21, 2013 at 12:50 am

Hi there,
How can we change the Invoice settings to reflect the date the person registered, rather than the date the invoice was downloaded?
Also how can I change the words “Primary Attendee ID” to “Invoice Number”?
WordPress version 3.6
EE version 3.1.34.1
At the moment we have’t activated invoices on our registration page but I did a test and these were two things which I would like to change, but can’t see how to do it in Invoice Settings.
Many thanks


Dean

August 21, 2013 at 5:03 am

Hi Sabrina,

The invoice template file would need to be changed to show those modifications.

As it took 2 minutes, I did a copy for you found here https://gist.github.com/Apina/42a155381855f013e796

You would be advised to copy the event-espresso/gateways/novice folder over to wp-content/uploads/espresso/gateways. and then modify the template.php file there.


Sabrina Ferguson

August 21, 2013 at 6:37 pm

Thanks so much Dean!!


Dean

August 21, 2013 at 11:32 pm

No problem. Marking as resolved.


Sabrina Ferguson

August 24, 2013 at 10:35 pm

Hi Dean
The code for the new template.php saved OK but when client tested it with a test rego we got this error message:

Parse error: syntax error, unexpected T_IF in /home/shebusin/public_html/wp-content/plugins/event-espresso/gateways/invoice/template.php on line 4

I am helping this client with his site. He has his own EE account and I can supply those details via email if you need to verify it.

I had a look at the code and couldn’t see an error on line 4 – it looked exactly the same as line 4 on the original. Any ideas?
Thanks
Sabrina


Dean

August 26, 2013 at 1:24 am

That is strange, that code should not have been touched. I tested the supplied code and didnt get any errors. Where is the error occurring? Is the client using Multiple Event Registration? Have you checked to make sure the code has been added correctly? If you revert back to the original file does the error still occur?


Sabrina Ferguson

August 26, 2013 at 11:15 pm

Hi Dean
Firstly, the client is not using Multiple Event Registration.
I copied the entire code and pasted it as it was on Github, so that should have been OK.
The error doesn’t occur with the original template.

I replaced the first four lines of the ‘new’ template with the first four of the original as they appeared to be identical, in case that was, for some reason, an issue.

So now there is a new error message:
Parse error: syntax error, unexpected T_STRING in /home/shebusin/public_html/wp-content/plugins/event-espresso/gateways/invoice/template.php on line 14

Sigh! Nothing wrong with line 4, it’s gone to 14 now.
Cheers
Sabrina


Dean

August 27, 2013 at 1:42 am

Oddness. Can I get FTP details please? I’ll have a look at the file firsthand and see if I can notice anything.

If so, please send them via https://eventespresso.com/send-login-details/


Dean

August 28, 2013 at 11:34 pm

Hi,

Each empty line in the file had extra space and possibly unknown formatting that was causing an error. I have uploaded a plain text version so please test the invoice.

Using programs such as Notepad, Notepad++ or specific coding related programs can help stop errors such as this.


Sabrina Ferguson

August 28, 2013 at 11:40 pm

Thanks Dean,
We will test. I copied and pasted the code from Github into a copy of template.php, removing existing code first. Don’t know why it threw up the extra lines.
I will let you know when client has tested- hopefully you’ll see this ticket marked as resolved by me.
thanks
Sabrina


Dean

August 29, 2013 at 12:01 am

No problem 🙂

Viewing 10 reply threads

The support post ‘Changing Invoice Settings re date and ID’ 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