Note is not a line item property - it a cart property. You have one note field for the whole cart. You need to add your custom items in the line item “properties” field (or customAttributes field in GraphQL) - which is an object with “key” and “value” fields.
Topic summary
A developer built a Shopify theme app extension allowing customers to customize individual items (e.g., personalized text on hats) but encountered a challenge: adding unique notes for each cart item rather than one note for the entire cart.
Key Points:
- Initial confusion: Cart notes in Shopify apply to the whole cart, not individual line items
- Solution found: Use line item properties by adding
name="properties[Text]"withform="product-form-{section.id}"in the product form - This approach stores custom data as key-value pairs in the line item’s
customAttributesfield (GraphQL) orpropertiesfield
Current Status:
- Original poster confirmed the solution works successfully
- Another user requested clarification on implementation details and code placement
Note: Some text in the conversation appears reversed/encoded but the core technical solution involves using Shopify’s line item properties feature rather than cart-level notes.