All things Shopify and commerce
I have to edit order confirmation template and i want use some js code, but it seems like script doesn't want start.
here is small code example:
<!doctype html>
<html lang="fi">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
</head>
<body>
<h1 class="delivery_date">HELLO</h1>
<script>
document.querySelector('.delivery_date').innerHTML = 'SOMETHING HERE';
</script>
</body>
</html>
Could you share store url?
Hey @jango81!
From what I understand, it is up to the email recipient's email client whether or not to support Javascript, and many email clients do not for security reasons.
It may be helpful for you to share some additional information about what you are trying to accomplish to receive more help with this. For example, Shopify's email templates do support Liquid code, so if you are trying to make some sort of conditional text or use variables, I would recommend doing this directly with Liquid instead of Javascript.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024