Send data from local storage to note_attributes field in order creation

Topic summary

A developer needs to send data stored in browser localStorage to the note_attributes field when a customer completes an order in a Shopify theme.

Current Status:

  • Successfully implemented localStorage data storage (step 1 complete)
  • Unable to send this data to orders because customizing the Checkout page is deprecated

Key Question:
How to achieve this without using the deprecated liquid.Checkout file?

Suggested Solution:
Use cart attributes instead of note_attributes. A community member recommended trying the cart attribute approach and provided a reference link to Shopify’s UI Elements Generator for cart attributes.

Discussion remains open - the original poster has not yet confirmed whether the cart attributes solution resolves their issue.

Summarized with AI on November 10. AI used: claude-sonnet-4-5-20250929.

Hello,

I hava a case in shopify theme (liquid) where I want to do the following.

  1. I have to store data in localstorage.

  2. I have to send the data in the note_attributes field of the order object (When user makes an order).

I have done 1. But I could not send the data in orders because customizing the Checkout page is deprecated.
How can I achieve this? Should I use the deprecated Checkout.liquid. Or is there some other way?

Hi,

You could send the attribute as cart attributes. Please check this and give it a try. https://ui-elements-generator.myshopify.com/pages/cart-attribute