Use script tag when editing notifications

New Member
1 0 0



I am trying to edit my notifications (e.g. Draft order invoice notification).

I would like to use the <script> tag and use JavaScript to compute custom VAT and then display the VAT in the invoice notification, since Shopify does not support new VAT rules in my country. For some reason the JavaScript code that I add in the script tag does not get executed. I have not run into any problems when using the script tags in the code editor for the theme.


Does anybody have a solution for this? i.e. does anybody know whether I need to do something in order to be able to use the script tags when editing the notification templates?





Shopify Expert
2686 67 684

Why don't you use Liquid for your calculations instead?

I wouldn't rely on javascript for this: pretty much doubt it will be executed server-side and highly unlikely e-mail clients will execute it as well. 

Want to hire me to tweak a theme? Mail me at!
My post solved your problem? Like it!
I am away till Feb-15.