Posted: June 7, 2021 at 2:11 am
Hi there, I’m having a issue with custom message templates I’ve designed to display some tickets. For instance, this is what the ticket SHOULD look like (I’ve accessed this from the backend) and this is what the ticket end up looking when I follow the link to it from my confirmation email: I’m sure it’s an easy fix, but can’t seem to understand why! Thank you |
|
Hi there, Can you post the code for your Or email it to support[at]eventespresso.com and I’ll view it there. |
|
Emailed over to you! |
|
Strange, I’m not getting any issues with your template, its working on both the admin and front end links for me. Try de-activating the template pack add-on, refresh the front end ticket URL to view the ticket again, re-activate the template pack add-on again and then refresh the ticket URL again, does it show correctly then? |
|
Hey Tony, What do you mean by refreshing? Where can I do this? I’ve deactivated and reactivated the template; still not loading the css on the frontend. Could it be because I have caching enabled? |
|
Click refresh on your browser. So open up the ticket link, like this one: (Looks like you’ve removed the registration so it no longer works, so open a link for a valid registration) Deactivate the template pack add-on and with that deactivated, refresh the above page (EE does various checks on the requests), then re-activate the template pack add-on and refresh the ticket page again.
Yes, possibly. Try clearing your caches and see if it loads correctly. |
|
Looking at the dev tools, it seems the frontend is loading the stylesheet in eea-ticketing/core/messages/templates/variations/html_ticketing_base_default.css instead of the custom one… |
|
Yes, I know, that’s the first thing I checked 🙂 But that doesn’t happen for me when using your add-on locally. Did you work through the steps I posted above? |
|
Yes just been through these, right after deactivating all caching and flushing everything. No luck, still not loading the right stylesheets… this is another link to use that I won’t delete. I also tried to do the above steps after deactivating all of my other template packs, but no luck either; still can’t get it to work.. |
|
OK, I think I’ve found it. You’re using a ‘custom message template’ for this, right? Could you switch to using the default message template for this? As in edit the default ticket template and set the template pack on that (not the default template will reset and use your custom one when switching). I think this is a bug in how the message system pulls the message template group when using custom templates, I’ll create a ticket to investigate this further but in the mean time the default template should work. |
|
I tested your theory, and it is indeed working! Sadly we have several types of tickets with different styling (some of them are to be gifted to people)… So that’s not ideal! But I guess there is no workaround for now? |
|
No workaround currently, at least not without altering the code in use for generating the messages. |
|
Hi there, Just a quick update to let you know that we’ve pushed version 4.10.12.p live which includes a fix for this. Custom message templates should now load correctly with that version. |
|
The support post ‘Stylesheets not loaded for emailed tickets, but loaded in WP backend’ 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.