Can you have a note attribute per cart item in order exports?

Can you have a note attribute per cart item in order exports?

benjamin0077
Shopify Partner
14 0 7

Hello,

 

I need clarification on a specific point about Note Attributes,
When you export your orders in csv there’s a filed : Note Attributes.

 

After reading the documentation, it’s not clear …

 

Is it possible to have Note attribute per cart item ?


When I export my csv, if the Order have multiple articles, only the first article have value in Note Attributes field…

Thanks

Replies 4 (4)

Liam
Community Manager
3108 344 908

Hi Benjamin0077,

 

Shopify's 'Note Attributes' apply to an entire order and not individual line items within the order. This means that if a customer leaves a note at checkout, it gets attached to the entire order as a note attribute. You cannot attach different note attributes to different line items within the same order using Shopify's standard functionality.

 

However, you can use Line Item Properties to attach additional information to specific line items within an order. These properties can be used to collect customization information for products, among other things. If you're working with a custom theme or app, you might be able to modify it to store specific information for each line item as a line item property.

 

When exported, line item properties will appear in a separate column from note attributes. The data will look something like this:

Lineitem properties: `{"Custom Text"=>"Hello World"}`

 

Hope this helps!

Liam | Developer Advocate @ 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 Shopify.dev or the Shopify Web Design and Development Blog

benjamin0077
Shopify Partner
14 0 7

First : thank you for this clear and official answer !

 

Well, I have already the values on custom item.properties, tell me if I’m wrong, but when you export your orders in Shopify admin custom data like item.properties are not exported and that’s my problem.

 

So I have for idea to copy custom item.properties in an unused exported field in the CSV file, but Note Attributes was not a correct choice and I don’t see another field to use…

 

Of course there are some app to export in CSV with custom item, but I’m sorry I’m not ok to give access to all customers list to them…

 

Liam, if you have an idea to solve this problem, I'd love to hear it, other than developing your own app or creating a custom app with a python script, which in both cases requires a lot of work just for a non-exported csv filed…

 

Thanks

BaileyPaserk
Shopify Partner
116 9 33

I would look to use a metafield app or order exporting app. They usually have access to extra metafields that shopify does not normally allow access to when exporting. 

https://apps.shopify.com/advanced-custom-field
https://apps.shopify.com/excel-export-import

 

Bailey Paserk

BaileyPaserk
Shopify Partner
116 9 33

order note attributes are for the entire order. What you are looking for will be Line Item Properties for each product. 

Here is the documentation for it: https://shopify.dev/docs/api/liquid/objects/line_item

Bailey Paserk