Support

Home Forums Event Espresso Premium Stylesheets not loaded for emailed tickets, but loaded in WP backend

Stylesheets not loaded for emailed tickets, but loaded in WP backend

Posted: June 7, 2021 at 2:11 am


ComedieTriomphe

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.
It seems as though the custom CSS files aren’t loaded from the email the buyer’s receive when accessing their tickets, yet they are loading when I preview these same tickets through the WP backend.

For instance, this is what the ticket SHOULD look like (I’ve accessed this from the backend)
https://www.comedietriomphe.fr/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=ticketing&context=registrant&token=1-f2119ae314e6f623ae3399e41cb03adf&GRP_ID=33&id=0

and this is what the ticket end up looking when I follow the link to it from my confirmation email:

https://www.comedietriomphe.fr/?ee=ee-txn-tickets-approved-url&token=1-f2119ae314e6f623ae3399e41cb03adf

I’m sure it’s an easy fix, but can’t seem to understand why!

Thank you


Tony

  • Support Staff

June 7, 2021 at 3:46 am

Hi there,

Can you post the code for your eea-abonnement-template-pack plugin somewhere so I can take a look?

Or email it to support[at]eventespresso.com and I’ll view it there.


ComedieTriomphe

June 7, 2021 at 5:56 am

Emailed over to you!


Tony

  • Support Staff

June 8, 2021 at 4:06 am

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?


ComedieTriomphe

June 8, 2021 at 5:14 am

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?


Tony

  • Support Staff

June 8, 2021 at 5:32 am

What do you mean by refreshing? Where can I do this?

Click refresh on your browser.

So open up the ticket link, like this one:

https://www.comedietriomphe.fr/?ee=ee-txn-tickets-approved-url&token=1-f2119ae314e6f623ae3399e41cb03adf

(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.

Could it be because I have caching enabled?

Yes, possibly.

Try clearing your caches and see if it loads correctly.


ComedieTriomphe

June 8, 2021 at 5:33 am

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…


Tony

  • Support Staff

June 8, 2021 at 5:38 am

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?


ComedieTriomphe

June 8, 2021 at 5:44 am

Yes just been through these, right after deactivating all caching and flushing everything. No luck, still not loading the right stylesheets…

https://www.staging2.comedietriomphe.fr/?ee=ee-txn-tickets-approved-url&token=1-93c337c1f8ed44fd24ae7c30cf7c389a

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..


Tony

  • Support Staff

June 8, 2021 at 9:45 am

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.


ComedieTriomphe

June 8, 2021 at 10:16 am

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?


Tony

  • Support Staff

June 8, 2021 at 2:33 pm

No workaround currently, at least not without altering the code in use for generating the messages.

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso