Is it possible to display a customer’s notes (notes they created) in their order history?
Hi there, @Chadj2026 . Thanks for connecting with us today. It’s nice to meet you.
I just have a few questions I want to ask you before jumping in and providing some support:
- Are you using any apps to collect notes from customers? Or is this something built into your theme?
- Are you wanting to add the notes to the order timeline for specific orders, or somewhere else?
I’ll keep my eyes peeled for your reply!
You can use the Shopify Admin API to retrieve the notes associated with an order and display them in the order history section of the customer’s account.
To do this, you can use the following GraphQL query:
query getOrder($orderId: ID!) {
order(id: $orderId) {
customer {
id
note
}
}
}
Perfect. Thank you for the help!
Hey there, @Chadj2026 and @EcomGraduates !
@Chadj2026 , super happy to see that one of our Shopify Partners was able to jump into this thread and provide you with a solution via our API. @EcomGraduates , thanks for jumping in here with your idea!
It’s threads like this that show the value that the Shopify Community Forums bring out for our Merchants and Partners!
@Chadj2026 , if you have any additional questions, feel free to follow up in this thread, or create another post! All the best!
Hi, same issue here that looking for the solution. As I’m not the coding developer but wanna to do it myself, could you mind to show the steps how I can put this code in, please? Thank you.