I need to add a Note after the user places their order and is sent to the confirmation page. I know you can add code in the "Additional content & scripts" and was wondering if anyone knew how to add an ajax call that would allow me to add a note to the order through there?
Here is what you do. Setup an App to listen for the Webhook event that the order was (created|paid). Use the API to get the order. Add your note to it.
Otherwise, if you want the customer to see the note on the confirmation page, you have the option to do a callback on the confirmation page to your App, using a Proxy, and get the note, to display. You could also inject a script tag that runs there, to display some generic note.
You don't provide enough details on your true intentions to describe more or better options. Clearly your code approach is never gonna fly as it is pre-order. Your code would work though to append a note to the cart which is then part and parcel of the order.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.