Jump to content

How to include structured data snippet (JSON) inside HTML email templates (for trustpilot AFS)


headscarvesbyciara

Recommended Posts

Anyone know of a way to be able to add this to the new_order.html email template that comes with the email_alerts module. I have tried to add it using the translations interface but when i try to save it I get the error cannot have javascript in your Email templates!!!!

 

I also tried using CDATA tags and ordinary html comment tags, neither of which seemed to work, and HTMLPurifier library turned off! I am using Prestashop 1.6.1.4

<script type="application/json+trustpilot">
{
"recipientEmail": "{email}",
"recipientName": "{firstname}",
"referenceId": "{order_name}"
}
</script>
Link to comment
Share on other sites

  • 5 months later...

Hi, headscarvesbyciara

i'm intrested to same thing, you solved?

 

PS:

I tried to replace character with html code

<script type="application/json+trustpilot">

with

<script type="application/json+trustpilot">

but it don't re-autoreplace.

 

Yesterday, i've contact trustpilot's team, i asked if their system recognize the snippet inside the <div>, whaiting for answere (but i imagine no).

 

 

Giuseppe

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...