Send data from local storage to note_attributes field in order creation.

wesionary
Shopify Partner
1 0 0

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?

Reply 1 (1)

rajibmk
Shopify Partner
2 0 4

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