Support

Home Forums Event Espresso Premium Use receipt template for event specific documents Reply To: Use receipt template for event specific documents

Reply To: Use receipt template for event specific documents

Author Replies
motio # Posted on May 9, 2018 at 2:02 pm

hey josh, if I may I will try it again. Maybe I go through the steps.

1. Create a new html receipt in the backend of EE, that has a specific message GRP_ID (the pdf I want the instructor to have, which the instructor needs to give the course)
2. I create the table view espresso-events-table-template-for-instructors.template.php
3. I insert the [ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=espresso-events-table-template-for-instructors.template.php] shortcode on a password protected page
4. I add a link to the table in the file espresso-events-table-template-for-instructors.template.php
The link has the following structure:

mysite.com?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=receipt&context=purchaser&token=TOKENOFREGISTRANT&GRP_ID=23

I take the token from the first attendee in the event and insert the token in the above field after “token=”, because the link don’t work without a token. The token of the registrant is only needed to get the event data for the receipt.
5. The link mentioned in step 4 has the GRP_ID of the html receipt mentioned in step 1
6. By clicking on the link on the event list, an html receipt will open, that I can save as a pdf, print it out and send it via mail (postal service) to the instructor.
7. The next step in the future would be: Filtering the events-table-template file (from step 2) for every instructor, that the instructor see only his event, and can download and print out the pdf document himself

I hope I was able to formulate a bit better of what I am trying to achieve.

Do NOT follow this link or you will be banned from the site!