Support

Home Forums Event Espresso Premium Custom Ticket Template

Custom Ticket Template

Posted: November 14, 2013 at 2:25 pm


Angela Haddon

November 14, 2013 at 2:25 pm

Hi, I’m having a strange problem in which my Custom Ticket template and CSS are no longer displaying; they were showing fine yesterday, and I have not modified the files in any way since then. I believe the paths are correct (wp-content/uploads/espresso/tickets/templates/newticket.php and wp-content/uploads/espresso/tickets/templates/css/newticket.css). Instead, it’s displaying /uploads/espresso/tickets/templates/index.php, and /uploads/espresso/tickets/templates/css/simple/index.php. It can’t be my files, because it won’t display the provided red.css file that comes in the same css folder either.
(FYI, I have checked that I have saved the correct options within Manage Ticket Templates;the drop-down menu within the admin interface displays and saves all available template/styling options correctly. I even changed the file names and while it updated correctly, the ticket is still falling back to the default styles).
Is there any conceivable reason why this should be happening? I’m stumped! I know I can simply edit the index.php and simple.css files directly to effect the changes I’m after, but I’d rather do it properly if possible.
Thanks for your help.


Dean

November 15, 2013 at 2:44 am

Hi,

In your uploads/espresso/tickets/templates folder, is there a copy of the default index.php file? If not it needs to be there otherwise it will ignore the other files.

See here – https://eventespresso.com/wiki/how-to-create-a-custom-ticket/#customticket


Angela Haddon

November 15, 2013 at 10:55 am

Hi Dean – everything was in order, so I triple-checked and found that I’d made a stupid error; I was testing with a different event, and that event had NOT been assigned the Custom Ticket type (hence it was falling back to the default). Just wondering: is there a way to preselect the custom ticket type for all events? I just don’t want my client making the same mistake I did, and sending out the wrong ticket type.


Sidney Harrell

November 15, 2013 at 3:58 pm

Hi Angela, you can use the following code to define a default ticket for the event editor. The third line is where you would put the id of the ticket that you would like to be the default.

You can add this code to one of the following:
1 – Your theme’s functions.php file. It may get overwritten the next time you update your theme.
2 – The EE custom files add-on in the custom_functions.php file.
3 – Use this blank plugin to hold the custom function.

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