Jump to content

Email Markups being removed from Email Template


Eugene

Recommended Posts

 
 
 
 
2 minutes ago, brian! said:

how are you entering the HTML code? are you using the HTML Source Code editor to do it??

 

I believe yes, because I clicked on "Enable/Disable Rich Editor" to switch into the source code mode before making the changes.

 

 

Edited by Eugene
Link to comment
Share on other sites

1 hour ago, Eugene said:

I believe yes, because I clicked on "Enable/Disable Rich Editor" to switch into the source code mode before making the changes.

I generally use the modal window....

a6PA3be.png

... but when that fails, e.g WHMCS insists on converting < to &lt; etc, I just edit the template content directly in the database... though once you go down that road, you can't really edit the template again in WHMCS as it might make those silly code conversions.

roughly, what's the code you're trying to enter, e.g what was inside those divs.

Link to comment
Share on other sites

 
 
 
1
47 minutes ago, brian! said:

I generally use the modal window....

... but when that fails, e.g WHMCS insists on converting < to &lt; etc, I just edit the template content directly in the database... though once you go down that road, you can't really edit the template again in WHMCS as it might make those silly code conversions.

roughly, what's the code you're trying to enter, e.g what was inside those divs.

 

I'm trying to add Google Structured data,  as described here  https://developers.google.com/gmail/markup/reference/flight-reservation

I need to pass those html structures into the email so that google can fetch data out of it.

I tried added JSOn and microdata both are removed by WHMCS for some reason when I click save

Link to comment
Share on other sites

4 minutes ago, Eugene said:

I tried added JSOn and microdata both are removed by WHMCS for some reason when I click save

then short of injecting this code via a hook, I suspect your easiest option would be to edit these templates in phpmyadmin or similar, and ensure that you never edit these templates directly in WHMCS.

if you can enter your code directly into the relevant tblemailtemplates row/field, then that will add your code without WHMCS removing it.

40XLGHn.png

if you ever view these modified email templates in WHMCS, then it will remove the custom code.

Link to comment
Share on other sites

 
 
 
 
 
3
3 minutes ago, brian! said:

then short of injecting this code via a hook, I suspect your easiest option would be to edit these templates in phpmyadmin or similar, and ensure that you never edit these templates directly in WHMCS.

if you can enter your code directly into the relevant tblemailtemplates row/field, then that will add your code without WHMCS removing it.

if you ever view these modified email templates in WHMCS, then it will remove the custom code.

 

Your answer makes sense and is valid.
Are you aware of any such addon?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated