How can I display order notes on the checkout page?

How can I display order notes on the checkout page?

BotRaymond
Visitor
1 0 0
Click to expand...
 

hi Guys, i have tried adding order notes to my checkout / order confirmation page by adding the following into my additional scripts but it doesn't seem to run. I could have sworn it use to run a year ago. For Reference I am using the dawn theme

 

<script>
{% if order.note != blank %}
Shopify.Checkout.OrderStatus.addContentBox(
'<h2>Card Message</h2>',
'<p>{{ order.note }} </p>'
)
{% endif %}
</script>

Replies 2 (2)

Dan-From-Ryviu
Shopify Partner
8579 1692 1703

Hi @BotRaymond 

Please remove <script> and </script> from your code to check it if it works. 

 

- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

kunalwf
Shopify Partner
29 0 4

It seems the OrderStatus.addContextBox api is now broken and no longer works