I'm trying to find out if it's possible to pass URL parameters in order to preset (at least) the Firstname and Lastname fields in the checkout page.
I'm currently able to direcly link a user to the checkout by forwarding to /cart/<product_name>:1?... including additional attributes. However since I've already collected the customer's name in a previous step I would like to preset this info (whether it's editable or not) in the checkout page they are presented with.
Keegan here from the Shopify Guru team.
Unsure of your use case, but it is possible to pass customer information from checkout out (through the order status page script box) by using the checkout objects below.
However passing things from cart to checkout, unsure. Can you provide a bit more clarification on use case? With that, I can try my best to get you an absolute answer with what is and is not possible on the current checkout. :)
Thanks for your post!
The use case is: We have a custom flow in which we use Shopify for a basic purchase experience of a quantity of 1 of a single product we offer.
So that way, "Next" takes the user to the checkout flow with 1 quantity of our product already loaded in their cart. And also passing the insurance info as attributes.
However it would be nice if the user does not have to enter their firstname and lastname again under the shipping info on this screen.
I could use a solid answer to this as well as we have a similar use case.
We already know the customer's name, shipping address and email as we're fielding phone calls from our CRM system (Salesforce).
I need to know how to go about pushing the customer information into Shopify so we can use it to pre-populate the customer information fields in checkout to streamline our telesales rep's checkout flow.
What's the best method for pre-populating these fields?
You can now preload first_name, last_name, and bunch of other fields.