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 3:28 pm

Okay, I see. I understand that is not intended for that purpose but it’s an quick workaround.

The best way would be to add a message group/type like the html receipt that is designed for this purpose.
For that I don’t know enough php and I think it’s way beyond my capabilities.

The most efficient way would be to add a php file that gets information of an event through the get-method and than use dompdf directly to get what I am trying to do.
The problem with this cases is, that I don’t know what information and which classes I have to include to make it work and more important how to make the get-method safe against sql-injunctions. I would need an example for that and I couldn’t find anything in that direction

I know that my approach is a workaround and not the most elegant way but it is in the reach of my capabilities. With that approach I only need a transaction token and I can use the backend of EE to create a template for that. With some custom shortcodes I get all the info that I need. The code isn’t probably not as efficient as it could be.

I was just wondering if there is a downside to that and if there is a good reason why I shouldn’t do that.

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