I am on a Shopify Plus account.
In my store (not hosted by Shopify) I leverage Buy It Now buttons to fill a cart and then send users to my Shopify Checkout page to complete the transaction.
On my checkout.liquid page (not cart.liquid which I'm not using) I wish to add a "How did you hear about us" dropdown.
A) Is this possible?
B) What are my options for saving the data? Appending it to the customer record would be bliss.
You won't be appending the data to the customer directly but you could look into using Shopify Flow to add a customer tag based on the attribute.
Thanks to (shout out) Andrew McGoveran on the Plus Support team for the email that showed me how to accomplish this utterly TRIVIAL task. In the event any other PLUS users wish to accomplish something similar, here's how to do it.
So in my case: name=checkout[attributes][Referral]
And boom, if the customers selects a item in the drop down here, it's elegantly displayed on the info page for this order in the Notes box under Additional Details.
And by leveraging the Shopify CSS class and HTML structure, you can even ensure it looks like a native field included by Shopify themselves leaving your customers none the wiser.
What's important to note is that the field must persist across every step.
If the naming was details you were missing you could have just dropped the question here. Hope you have not been trying to work that out since you first made the post.
Ahh mind if I pick your brain about the js?
In my case, it's to implement 3 radio inputs and to save the selected choice. I appended the inputs to the form fine, I can select a choice, but when i select continue to shipping method it's not appending, does that mean it's not working, or will the selected input choice only be visible for the client under their orders?
I am trying to do the same thing but coudn't get this working. Is this format still work? When I access the checkout page with permalink like ?checkout[shipping_address][first_name]=test, the customer first name field is populated with string test. When I use name=checkout[attributes][Referral] and create an input type text box for it and access the same page with permalink ?checkout[attributes][Referral]=test, the value does not appear in the text box. Please help.
|an hour ago|
|an hour ago|