Support

Home Forums Event Espresso Premium Phone number of Attendees Variable in Invoice PDF

Phone number of Attendees Variable in Invoice PDF

Posted: November 3, 2014 at 3:27 am


Sarah Blowers

November 3, 2014 at 3:27 am

From the example:
modules\gateways\invoice\lib\templates\receip_body.template.php

Line:

<?php echo sprintf(__(‘%s (%s)’, “event_espresso”),$attendee->full_name(),$attendee->email())?>

We wish to add the phone number variable (which is in our System Question) in the Invoice PDF

What variable to use?

$attendee->?

Is there a page that summarizes the variables.

Please advice, need to go live within a day.

Multi language site: Thai – English
Espresso Version: ee4.4.3.p
Wordpress Version: 4.0


Dean

November 3, 2014 at 5:55 am

Hi,

Use

$attendee->phone();


Sarah Blowers

November 3, 2014 at 10:03 pm

Hello,

The code given does not work:

$attendee->phone()

See Pic 1 http://tcppoint.com/download/Event/1.jpg

When click back to edit “Registration Details” in the Confirmation Receipt, the phone number is blank.See pic 2 http://tcppoint.com/download/Event/2.jpg

However, When go to event>registrations>detail, the phone number is there normally. See pic 3 http://tcppoint.com/download/Event/3.jpg

There seems to be a bug that makes it so the phone numbers does not show in the confirmation receipt.

Thank you


Dean

November 4, 2014 at 2:49 am

Hi,

Did you modify the sprintf?

Code is here: http://pastebin.com/QEKrRcGW

Note the additional %s is needed to display the phone number.

  • This reply was modified 9 years, 6 months ago by  Dean. Reason: code was messed up
  • This reply was modified 9 years, 6 months ago by  Dean. Reason: code still messed up, moved it to pastebin


Sarah Blowers

November 4, 2014 at 3:43 am

Thank you

Regarding data in the email how do we:
1. Link to “Confirmation Receipt” pdf for people to go back immediately to the PDF to print to go pay at the bank (For Registration Payment Pending Message Email)
2. For “Registration Approved” message email, how do we remove some of the answers from the registrants? We want to keep only Size Shirt, not all the information.


Dean

November 4, 2014 at 6:43 am

Hi,

1) You can add the [INVOICE_LINK] message tag (it should go in the Main Content section of the message).

2) you could use the [ANSWER_*] tag (needs to go in the Attendee List section). This is used like so, if you have a question such as What is your favourite colour? you would use

[ANSWER_*What is your favourite colour?]

So the EXACT question. This will output the answer not the question, so you would perhaps be best in the email to do something like:

Favourite colour: [ANSWER_*What is your favourite colour?]

and the customer would see

Favourite colour: Green


Sarah Blowers

November 4, 2014 at 11:56 pm

Thank you.

But the Invoice Link does not show the same information as the “confirmation order” – I need it to show a manual code, phone number, and reg code.

How do I customise invoice?


Lorenzo Orlando Caum

  • Support Staff

November 5, 2014 at 8:46 am

Hi Sarah,

Have you already relocated a copy of the gateway to another location?

If not, could you go ahead and do so to preserve your customizations:

https://eventespresso.com/topic/removing-vattax-number-from-invoice/#post-98706


Lorenzo


Sarah Blowers

November 5, 2014 at 9:51 pm

Hi Lorenzo,

This path does not exist:
/wp-content/uploads/espresso/templates/modules/gateways/Invoice/lib/templates/

I can only see:
wp-content/plugins/event-espresso-core-reg/modules/gateways/Invoice/lib/templates

I am so sorry but could you explain in more details- step by step in doing this. I really need to customize the invoice as it does not pull the data the bank requires for ref.

Thank you


Sarah Blowers

November 6, 2014 at 4:19 am

Also, I want to change the “confirmation order” button on Thank You page to “Invoice form” but cannot seem to do this. Any advice?


Lorenzo Orlando Caum

  • Support Staff

November 6, 2014 at 8:57 am

Hi,

You are copying the templates to a safe location before editing them:

https://eventespresso.com/topic/removing-vattax-number-from-invoice/#post-98706

The folder structure would need to be created here:

/wp-content/uploads/espresso/templates/

…and the end result will be this:

/wp-content/uploads/espresso/templates/modules/gateways/Invoice/lib/templates/

Then you can move the template files there and begin editing.

If you skip this step, then your customizations will be lost on a software update.

Please give this another try and let us know when the steps above have been completed.


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

December 8, 2015 at 6:28 pm

Hi Sarah,

When we shared feedback on your question last year, copying over the templates for editing was the recommended way to edit the templates for the Invoice or Receipt.

That has changed as Event Espresso 4 now has an editor to edit those templates through the WP dashboard.

It can be found in Event Espresso –> Messages. You’ll now be viewing the Messages Overview screen. Now look for Invoice or Receipt and click on Purchaser. Here is an example of how they appear on the Messages Overview Screen:

http://cl.ly/image/2O341M2z0H1q

If you do not see them, then you may be using an old version of Event Espresso 4 or they may be on page 2 so you can paginate (browse) to page 2 and they should be there.

Here is a change log for Event Espresso 4:

https://eventespresso.com/wiki/ee4-changelog/

If you have any new questions about the using the messages system, then please create a new support post in our support forums:

https://eventespresso.com/support/forums/


Lorenzo

The support post ‘Phone number of Attendees Variable in Invoice PDF’ 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