Support

Home Forums Event Espresso Premium Listing Attendees on Invocice

Listing Attendees on Invocice

Posted: November 23, 2018 at 2:52 am


PsytribePsychology

November 23, 2018 at 2:52 am

OK, I would like to amend / add content to the invoice body. I have figured out how to change the “bill to” section using [PRIMARY_REGISTRANT_ADDRESS_*] (main comment would be why can one not use the short namefor the answer to the extra question I add for the questionnaire?, Why do I have to use the question text (which is long form).
Now what I would appreciate help with is I would like to list in the main body of the standard invoice, the attendees.
I added after the short code [TICKET_LIST]
“Delegates
[PRIMARY_REGISTRANT_FNAME] [PRIMARY_REGISTRANT_LNAME]”
and that resolved for when a single delegate is attending. However, we have multiple delegates i.e. when they book more than one delegate. How do I add the other delegates names from the data base. What is the Short code to list or coding I need to add in the invoice template area for my event to list all delegates attending? Help as I need to issue issues before lunch please.

Thank you


Tony

  • Support Staff

November 23, 2018 at 3:59 am

Hi there,

(main comment would be why can one not use the short namefor the answer to the extra question I add for the questionnaire?, Why do I have to use the question text (which is long form).

You mean the ‘Question Label (admin-only)’ field?

The reasons we used the question text field was to make sure the answer was for that specific question, we’ve seen users use the same admin label for multiple questions and truth be told you can do the same with question text, although most users use a unique string for it so we used that.

[PRIMARY_REGISTRANT_FNAME] [PRIMARY_REGISTRANT_LNAME]

Will only every pull the ‘Primary registrant’ details, of which there can only be one.

You’ll need to use the ATTEDNEE_LIST section but it’ll depend on how you want to output the details, for example, in TICKET_LIST you can add this:

<tr><td colspan="5">[ATTENDEE_LIST]<td></tr>

Below [TICKET_LINE_ITEM_LIST], like so – http://take.ms/viiY9

Then in the ATTENDEE_LIST section, add the shortcodes for the details you want followed by a br tag, for example – [FNAME] [LNAME]<br>

Like this – http://take.ms/TdMuf

Which outputs something like this – http://take.ms/OJkPm


PsytribePsychology

November 23, 2018 at 5:08 am

Hi Tony, this has been most helpful, thank you. I was doing it incorrectly, but now it all makes sense. Some notes in the Documentation on this section would be helpful. I could not locate these.
As a note to any other forum users – don’t type in details in BOLD, or the system will output in bold.
Also a field text can be added above the delegate list with a statement in <p>PLACE YOUR TEXT HERE</p>.
Please note: If you add the [ATTENDEE_LIST] statement before the <tr><td ……> section, the screen in HTML looks good, but the PDF can not reproduce the content correctly. So follow Tony’s tips of adding after the closing <td ….> statement.
So My code in the [TICKET_LIST] list is
“………..
[TICKET_LINE_ITEM_LIST]
<tr>
<td colspan=”5”>
<p>Delegates Registered To Attend</p>

    [ATTENDEE_LIST]

<tr>
<td colspan=”5″>”
and the code in the [ATTENDEE_LIST] section is

  • [FNAME] [LNAME] – contact email [ATTENDEE_EMAIL]
  • Thank you again Tony
    Regards

    Graeme


    Tony

    • Support Staff

    November 23, 2018 at 7:58 am

    As a note to any other forum users – don’t type in details in BOLD, or the system will output in bold.

    Huh? Do you mean CAPITALS? (If so I’m still not sure I follow tbh)

    If you set text to bold it seems logical that it would display in bold.

    Please note: If you add the [ATTENDEE_LIST] statement before the tr td …… section, the screen in HTML looks good, but the PDF can not reproduce the content correctly. So follow Tony’s tips of adding after the closing td …. statement.

    DOMPDF (which we use to generate the PDF’s) is much less tolerant of invalid HTML. Your browser generally will try to fix it on the fly but DOMPDF will usually throw a fatal error, so you need to validate you HTML.

    Adding the [ATTENDEE_LIST] shortcode adds additional tr and td elements when that section is parsed, so you need to be careful to ensure the output is still valid. There’s a lot of customizations you can make, but regardless of what you do, make sure its valid and check all changes to confirm the PDF’s still download.

    The support post ‘Listing Attendees on Invocice’ 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.

    Support forum for Event Espresso 3 and Event Espresso 4.
    Documentation for EE3 and EE4
    Documentation for Event Espresso 3

    Documentation for Event Espresso 4

    Status: closed

    Updated by  Tony 2 weeks, 5 days ago ago

    Topic Tags

    Notifications

    This topic is: not resolved
    Do NOT follow this link or you will be banned from the site!