Pre-Populate Custom Checkout Fields for Returning Clients

We are wondering if it was possible to pre-populate custom checkout fields for clients who are logging in and modifying their subscriptions. The desire is to have the custom checkout fields pre-populated with the selections that the client made last time, so they don't have to choose them again.

If someone could show us how to accomplish that, we'd appreciate it!

Thanks so much!

Here's an example of some of the custom checkout information we're trying to pre-load for our clients...

Great question. We don't currently expose custom fields or attributes on the checkout when a customer logs in. It's also worth noting that custom checkout fields are currently linked to the transaction, rather than to the customer directly.

A custom set up could be created, but it would require performing some custom coding. You would need to set up an endpoint on your server which communicates with the API to fetch the customers previous transactions and detect what they previously set for those custom fields. You would send off a request to that endpoint securely from the checkout after the customer logs in to fetch the values and set them on the checkout.

Alternatively, if you had SSO set up, you could require the customer log in on your website first. When proceeding to the checkout, use the SSO endpoint as a way to fetch the customers previous values for those custom fields and set them as a hidden session variable for the transaction. Then within the code for your custom checkout fields you could check for those hidden session attributes to use as the default value for those fields.

Both of those approaches could definitely work, but would require some custom development to get going. Sorry we didn't have a better answer, let us know if we can clarify any further.