Eugene Posted February 22, 2020 Share Posted February 22, 2020 Hello, I'm trying to add some HTML Email Markups on my email template but when I'm clicking the same button, whmcs is removing all the html content leaving just <div> tags. Is there any solution for this? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 23, 2020 Share Posted February 23, 2020 16 hours ago, Eugene said: Is there any solution for this? how are you entering the HTML code? are you using the HTML Source Code editor to do it?? 0 Quote Link to comment Share on other sites More sharing options...
Eugene Posted February 23, 2020 Author Share Posted February 23, 2020 (edited) 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 February 23, 2020 by Eugene 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 23, 2020 Share Posted February 23, 2020 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.... ... but when that fails, e.g WHMCS insists on converting < to < 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. 0 Quote Link to comment Share on other sites More sharing options...
Eugene Posted February 23, 2020 Author Share Posted February 23, 2020 1 47 minutes ago, brian! said: I generally use the modal window.... ... but when that fails, e.g WHMCS insists on converting < to < 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 23, 2020 Share Posted February 23, 2020 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. if you ever view these modified email templates in WHMCS, then it will remove the custom code. 1 Quote Link to comment Share on other sites More sharing options...
Eugene Posted February 23, 2020 Author Share Posted February 23, 2020 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? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.