If you already have the customer details – for example, their name, email address, shipping info etc – and would like to pre-fill those fields on the cart so that they do not have to re-enter them, you can do so by providing particularly named pass through variables (see this article for details on how to use pass-through variables).
You can use the following as the keys for pass-through variables and they will match up to the fields on your checkout page if they exist.
Note that users can always modify this information on this page; you should rely on the information returned as part of the order info (and verified by the hash) and not the returned pass through variables if you are using this feature.
- customer_address_country – Note, this is the two-digit country code; US, GB, DE, etc
Custom fields are prefixed with custom_ then the field name as entered in the product settings. If the custom field name has a space in it then the space needs to be replaced wan and underscore.
The above URL would pre-fill the name field with ‘Edward Mann‘, the email field with ‘firstname.lastname@example.org‘, and the custom field skypeid with ‘MySkypeID‘ You should provide the fields as properly URL-encoded.
As always if you have any questions please don’t hesitate to get in touch with us via email@example.com