Skip to content

Instantly share code, notes, and snippets.

@wplaunchify
Created December 6, 2019 00:11
Show Gist options
  • Save wplaunchify/5f67913b3e2a7a16a856a8a866e236be to your computer and use it in GitHub Desktop.
Save wplaunchify/5f67913b3e2a7a16a856a8a866e236be to your computer and use it in GitHub Desktop.
CartFlows Prefill WooCommerce Checkout Fields From URL (Instructions)
CartFlows Prefill WooCommerce Checkout Fields From URL
How To Use This Plugin:
This plugin provides a convenient way to pre-fill any WooCommerce checkout form, either natively or in CartFlows, from a custom url that you generate using your favorite form builder.
The parameters it passes from the url are:
a) Email
b) First Name
c) Last Name
The parameters should be added to your url string as follows:
a) email=
b) fname=
c) lname=
Example use:
To pre-fill a WC checkout with Bob Smith with an email of Bob@Smith.com, one would use the following url:
https://yourdomain.com/?email=Bob@Smith.com&fname=Bob&lname=Smith
The string you would create is this part, preface the first parameter with "?" and any others with "&"
?email=Bob@Smith.com&fname=Bob&lname=Smith
You do not need to use all of the parameters, so for example you could use: ?email=Bob&Smith.com or ?fname="Bob" and it will work just fine.
Any question? Contact me via help@wplaunchify.com
Cheers!
spence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment