I tried to add javascript to my checkout page in the "additional scripts" field, but it wouldn't work. Even
console.log("Hello world");
wouldn't do anything. Anyone have any idea what the problem is?
@jimjams @Nick_H Shopify checkout additional script doesn't allow custom script
you can see Official document here- what you can do with addition script https://help.shopify.com/en/manual/orders/status-tracking/customize-order-status/order-status-javasc...
@gina-gregory did try to
<script> alert("Hello! I am an alert box!!");</script>
???
It works, but it's important to point out that the code in the "Additional scripts" field only gets added to the checkout thank you page. It's mostly intended to be a place to add conversion tracking code or a short bit of custom HTML/messaging.
@gina-gregory Thank you for this info, it isn't very clear on the literature that it only gets added to the thank you page.
Saved me more time debugging!
User | Count |
---|---|
24 | |
24 | |
23 | |
19 | |
13 |