{"id":7027,"date":"2020-02-05T18:43:11","date_gmt":"2020-02-06T00:43:11","guid":{"rendered":"https:\/\/launchflows.com\/?post_type=documentation&p=7027"},"modified":"2022-01-29T15:05:22","modified_gmt":"2022-01-29T21:05:22","slug":"how-to-pre-fill-woocommerce-checkout-fields","status":"publish","type":"documentation","link":"https:\/\/launchflows.com\/documentation\/how-to-pre-fill-woocommerce-checkout-fields\/","title":{"rendered":"Pre-fill WooCommerce Checkout Fields"},"content":{"rendered":"

Uses any URL variables you send to a WooCommerce checkout page where the visitor is not otherwise registered and logged-in. This function fills in the three fields with the data passed in the URL string.<\/p>\n

email= (*Note-this is REQUIRED no matter what<\/em>)
\nfname=
\nlname=<\/p>\n

Use with a LeadMagnet product or when sending a new lead or prospect from another website or social media.<\/p>\n

If prospect has already provided their first and last name and email, this eliminates the need for them to add this information again in the WooCommerce checkout.<\/p>\n

*Note: after they complete the first transaction on your site (free or paid), their user information is always pre-filled by WooCommerce.<\/p>\n

Therefore use this for situations where the visitor is new, rather than returning customer.<\/p>\n

https:\/\/yourdomain.com\/custom-checkout\/?email=<\/strong>bob@smith.com&fname=<\/strong>bob&lname=<\/strong>smith<\/p>\n","protected":false},"excerpt":{"rendered":"

Uses any URL variables you send to a WooCommerce checkout page where the visitor is not otherwise registered and logged-in. This function fills in the three fields with the data passed in the URL string. email= (*Note-this is REQUIRED no matter what) fname= lname= Use with a LeadMagnet product or when sending a new lead…<\/p>\n","protected":false},"featured_media":0,"menu_order":45,"template":"","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"documentation_tags":[86],"acf":[],"featured_image_src_large":false,"author_info":[],"comment_info":"","taxonomy_info":{"documentation_categories":[{"value":253,"label":"Sales Funnel Tricks"}],"documentation_tags":[{"value":86,"label":"Checkout Fields"}]},"_links":{"self":[{"href":"https:\/\/launchflows.com\/wp-json\/wp\/v2\/documentation\/7027"}],"collection":[{"href":"https:\/\/launchflows.com\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/launchflows.com\/wp-json\/wp\/v2\/types\/documentation"}],"version-history":[{"count":0,"href":"https:\/\/launchflows.com\/wp-json\/wp\/v2\/documentation\/7027\/revisions"}],"wp:attachment":[{"href":"https:\/\/launchflows.com\/wp-json\/wp\/v2\/media?parent=7027"}],"wp:term":[{"taxonomy":"documentation_tags","embeddable":true,"href":"https:\/\/launchflows.com\/wp-json\/wp\/v2\/documentation_tags?post=7027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}