1. Home
  2. Advanced Usage
  3. Pre-fill your checkout fields

Pre-fill your checkout fields

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.

Key mapping

  • customer_company
  • customer_firstname
  • customer_lastname
  • customer_name
  • customer_email
  • customer_address_line1
  • customer_address_city
  • customer_address_state
  • customer_address_zip
  • customer_address_country – Note, this is the two-digit country code; US, GB, DE, etc
  • customer_contactno
  • custom_xxx

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 with an underscore.




The above URL would pre-fill the name field with ‘Edward Mann‘, the email field with ‘mremann@example.com‘, 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 support@thrivecart.com

Updated on March 10, 2020

Was this article helpful?

Related Articles

Can't find the answer?
Can't find the answer to your question after searching the helpdesk and our extensive content? Click below to submit a ticket and get in touch with us.
Submit A Ticket