Members & Customer Data Overview

There are several form tags in CartThrob that facilitate saving customer data to the current session (among them save_customer_info_form and checkout form. This data can optionally be saved to the logged in member's permanent profile as well. To do this, you must configure the backend settings, and you must gather customer data somewhere in your checkout process (even in the last step is fine).

Setup and Configuration

You can review setup information here »

Example

In the following example, the first_name and last_name fields will be saved to the current session. If the member is logged in, this data can also be saved to the member profile fields if the settings are properly configured.

{exp:cartthrob:save_customer_info_form 
    return="cart/order_info" 
    }
    <input type="text" name="first_name" value="" />
    <input type="text" name="last_name" value="" />

    <input type="submit" value="submit" />
{/exp:cartthrob:save_customer_info_form}