Support

Home Forums Event Espresso Premium Custom HTML Ticket Templates

Custom HTML Ticket Templates

Posted: February 17, 2013 at 1:42 pm


MIKE ST MARIE

February 17, 2013 at 1:42 pm

I’m trying to customize several tickets for our various events. I have the latest version of EE and Ticketing. I have created a folder:
/uploads/espresso/templates/tickets/templates in which I’ve put my template files. I go into Ticket Templates and create my individual templates, and I can see each template file I’ve put into that directory. However, when I add an attendee and then view their ticket, the file /plugins/espresso-ticketing/templates/index.php is the template that is being displayed.

I have no idea if this bit of code is related, but in espresso.php, line 368

if ( file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "ticketing/template.php") || function_exists('espresso_ticketing_version') ) {

I can find no trace of that file.


Dean

February 18, 2013 at 12:45 am

Hey Mike,

Have a look at this article here https://eventespresso.com/wiki/how-to-create-a-custom-ticket/ I did an example ticket.

Have you made sure that the event that the attendee is attached to has the right ticket selected for it?


MIKE ST MARIE

February 18, 2013 at 8:39 am

Ok, I take all that back, well, some of it. I don’t think EE is even recognizing that I have custom templates.
Here we go:1. Removed all custom templates
2. Here is my file structure:
enter image description here
3. Here is a shot of setting up a template. EE does not recognize the files:
enter image description here

  1. Move the files into the ticketing folders:
    enter image description here

  2. Now EE sees those files:
    enter image description here

The issue isn’t my ability to create the templates, but rather EE’s ability to recognize and use them. At least that what it seems. I’m pretty sure I followed the instructions to the letter, and hopefully my folder structure is correct. I hope the images will help, perhaps someone will see a misstep somewhere.


MIKE ST MARIE

February 18, 2013 at 11:17 am

Alternately, you can give me which files control how these templates are handled and I can have a quick look. I’m pretty handy with PHP, and I love solving problems like this, it’s just that looking through each plugin file would drive me bat$h!t crazy. I’ll share any findings and solutions necessary to resolve this.


MIKE ST MARIE

February 18, 2013 at 7:04 pm

Ok, here it is. There are 2 conflicting sets of instructions. The article Dean posted is correct, while the PDF instructions that come with the ticketing add-on are incorrect. I’m not one to search all over a large number of posts, especially if there are instructions included. I would seriously consider updating the PDF instructions. There are also references to files named index.html and basic.html, which should probably be index.php.
enter image description here


Dean

February 19, 2013 at 6:06 am

Hi Mike,

Thank you for pointing out about the PDF error, there is a ticket raised to change/remove that.

Can I confirm that you have it up and running now?


MIKE ST MARIE

February 19, 2013 at 7:22 am

It is up and running now, happy as a clam. Thanks!


Dean

February 19, 2013 at 10:00 am

Excellent, ill mark this resolved!

The support post ‘Custom HTML Ticket Templates’ 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