No results found. Try again with different words?

Search must be at least 3 characters.

How to Pre-Fill the Checkout Fields via URL Parameters.

We are introducing a new feature to pre-fill the checkout fields via sending contact information from URL parameters. After many requests, we decided to integrate it in the CartFlows, and in this article, we will see how to set it up and how to use it.

So, let’s begin…

This feature is enabled by default in the CartFlows. So, you just need to send the parameters from the URL on the checkout page to pre-fill the checkout fields on the CartFlows checkout page.

Remember, this feature works on the CartFlows Checkout page and not on any other page.

To send the values from the URL parameters, you can use any contact form to send the values in the URL after successful submission.

Now, while using the contact form or any other medium you need to ensure that to create a proper checkout page URL so that your data will be automatically pre-filled on the CartFlows Checkout page.

For example, If you want to send the user’s email address, first name then your checkout page URl should be created as follows:

https://yourdomain.com/checkout-page/?billing_first_name=John&[email protected]

There are few fields names which you can use to send the data in the URL to capture it on the CartFlows Checkout page and they are listed below.

List of Billing Fields

  • billing_email
  • billing_first_name
  • billing_last_name
  • billing_phone
  • billing_address_1
  • billing_address_2
  • billing_city
  • billing_postcode
  • billing_country
  • billing_state
  • billing_company

List of Shipping Fields

  • shipping_email
  • shipping_first_name
  • shipping_last_name
  • shipping_phone
  • shipping_address_1
  • shipping_address_2
  • shipping_city
  • shipping_postcode
  • shipping_country
  • shipping_state
  • Shipping_company

If you don’t want to use this feature then we also have provided a filter to disable this feature on the CartFlows Checkout page. Please note that disabling this feature using the filter will disable it from all the available checkout pages.

Below is the code which you can use to disable this feature. After copying this code you have to add it in your child theme’s functions.php file at the very end of it.

add_filter( 'cartflows_auto_prefill_checkout_fields', '__return_false' );

This article will help you to add the custom PHP code on your website.

Was this article helpful?
Did not find a solution? We are here to help you succeed.

Related Docs

Try CartFlows Risk-Free for 14 Days

You are protected by our no questions asked refund policy.
Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Free Cartflows Form - Popup

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.