Have your say in Community Polls: What was/is your greatest motivation to start your own business?

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
10261 2039 2110

Hi @BotRaymond 

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

 

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: 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 6

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