Re: show customer's notes in order history

show customer's notes in order history

Chadj2026
Visitor
2 0 0

Is it possible to display a customer's notes (notes they created) in their order history?

Replies 5 (5)

Imogen
Shopify Staff
2045 226 388

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!

Imogen | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

EcomGraduates
Shopify Partner
735 63 105

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
    }
  }
}

 


If this fixed your issue, likes and accepting as a solution are highly appreciated.

Build an online presence with our custom built Shopify Theme EcomifyTheme




Chadj2026
Visitor
2 0 0

Perfect. Thank you for the help!

Imogen
Shopify Staff
2045 226 388

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!

Imogen | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Nemibaby
Visitor
1 0 0

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.