Support

Home Forums Event Espresso Premium Template Packs for custom HTML Emails

Template Packs for custom HTML Emails

Posted: February 3, 2020 at 12:25 am


Nathan Winnall

February 3, 2020 at 12:25 am

Hi Guys,
Looks liked i asked this question a couple of years ago, but never got resolved , i am looking to change the complete style and HTML of the emails as i find the default ones, not nice and not on our brand. I have read the template packs, but very confused as it doesn’t seem to create a new pack under template structure. I don’t want to just changed the css which variations is for from what i have read. How can i achieve this please?


Josh

  • Support Staff

February 3, 2020 at 8:51 am

Hi,

You may need to hire a developer to do this because building a new template pack does require some PHP experience. Here’s a link to the developer documentation:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/E–Messages-System/registering-message-template-packs.md

We recommend reaching out to codeable.io for a quote because the developers there have experience with PHP.


Nathan Winnall

February 5, 2020 at 10:59 pm

Hi Josh,
I have implemented the template pack that is the test one from your github and it loads but only on a couple of emails. i can not make responsive like all other email s i have coded. Just trying to get bit more of an insight instead of spending more money to get someone else to do it

Thanks,
Nathan


Tony

  • Support Staff

February 6, 2020 at 3:07 am

I have implemented the template pack that is the test one from your github and it loads but only on a couple of emails.

The docs show an example to based your template on and the code includes:

//note in this example we're stating that this template pack JUST supports the email messenger and the payment message types.
$this->_supports = array(
	'email' => array(
		'payment_declined', 'payment', 'payment_refund', 'payment_reminder'
		)
);

Meaning that example template pack will only load on for those payment message types.

You would set your own message types for the template pack.

i can not make responsive like all other email s i have coded.

Sorry but I’m not sure I follow this, what does making the email responsive have to do with not being able to load the template packs?

The defaults use tables which are harder to make responsive but if you are creating your own that won’t matter.

Just trying to get bit more of an insight instead of spending more money to get someone else to do it

Ok, but so far you haven’t asked any specific questions other than how to create a template pack, which Josh provided the documentation for. Those docs give in-depth instructions on how to create/register a template pack.

We are happy to answer any questions you may have on the message templates api but going through each specific method available and each property you need to set for your use case is outside the scope of support we can provide on the forums.

So may I ask, what specific insight are you looking for?


Nathan Winnall

February 7, 2020 at 12:57 am

Hi Tony,
Thankyou for your reply. What i have been able to do is get my template pack working on some more messages, by way of guessing the message handler. For example i am know trying to get by template structure to drop down my custom template ‘Rekon Group’ under not approved registration. I am trying to guess what that handler is so i can put into the classes php so i can change it. Where can i find a list of message handlers so i am not trying to guess everything?

To answer your question i did ask a specific question of how do i get my template under the template structure dropdown was told to read what i have already read and implemented or pay someone else to do it. All i need now is a list of the handlers which i can not find anywhere to put in the classes php so i can finish up my custom templates.

Can you help?

Thanks,
Nathan


Tony

  • Support Staff

February 10, 2020 at 3:12 am

Where can i find a list of message handlers so i am not trying to guess everything?

Message handlers?

Do you mean message types?

There are data handlers but not message handlers so I assume you mean message type.

Message types are dynamic as you can add your own, you can find all of the default message types within:

\event-espresso-core-reg\core\libraries\messages\message_type\
&
\event-espresso-core-reg\caffeinated\core\libraries\messages\message_type\

(2 locations as the ‘caffeinated’ version of EE adds additional message types)

The ‘name’ attribute on the message_type.class files give you your message type, but here is a list that should cover all email related types:


'payment', //Payment received
'registration', //Registration Approved
'not_approved_registration', //Not Approved Registration
'declined_registration', //Registration Delcined
'cancelled_registration', //Registration Cancelled
'pending_approval', //Registration Pending Payment
'registration_summary', //Registration Summary email
'payment_reminder', //Payment Reminder email
'payment_declined', //Payment Declined email 
'payment_refund',//Payment Refund email
'payment_failed',//Payment Failed email

Most are self-explanatory but some not so much.

To answer your question i did ask a specific question of how do i get my template under the template structure dropdown was told to read what i have already read and implemented or pay someone else to do it.

Re-reading your original reply and piecing bits together I can now understand some more what you meant, but this is by no means obvious in your original reply and comes more from the second reply, for example:

I have read the template packs, but very confused as it doesn’t seem to create a new pack under template structure.

That does not automatically mean you have gone through the documentation Josh linked to, it could simply mean you read over the templates, what are templates in that context? What have you read? What are you actually confused about? What isn’t adding a pack under the template structure and where? As I said, there are no specifics so we have to start from the beginning.

You don’t mention any specific code here and simply state you’ve looked over something and it doesn’t add a template structure, we can only work from whatever you posted in your reply so we have no idea what you’ve read, nor what you are stuck on from your initial post.

Under general EE support, we do not provide support for customizations but are more than happy to answer questions if we can help point you in the right direction, however, you’ll need to provide specifics on the issue and show what you have done already or you’ll simply be referred to the documentation as we have no idea where you are up to without that info.


Nathan Winnall

February 16, 2020 at 7:10 pm

Great thanks Tony, that is exactly what i was after.

Thankyou again,
Nathan

The support post ‘Template Packs for custom HTML Emails’ 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