When using the Shop shopping cart, you can choose to prepopulate field values in the checkout form using user-defined session variables.
Specifically, you can apply user-defined session variables as follows:
- Open the Shop > Configuration > Shopping Cart tab
- To set the Default Values for the standard fields in the Contact Information section, scroll down to the Contact Information section and click Customize Headings and Labels. In the form that expands, you may set any or all default values using user-defined session variables:
- First Name
- Last Name
- Email Address
- Phone
- Organization
- To set the Default Value for a custom Salesforce field, scroll to the Custom Salesforce Field section. Click the edit button for the field whose value you wish to define. Enter the value in the Default Value parameter. Click Save.
NOTE: Either user-defined session variables or Salesforce Contact field variables for a logged in user can be entered as the Default Value. - To set the Default Values for the standard fields in the Shipping Information section, scroll down to the Shipping Information section and click Customize Headings and Labels. In the form that expands, you may set any or all default values using user-defined session variables:
- Shipping First Name
- Shipping Last Name
- Shipping Street
- Shipping City
- Shipping State/Province/Region
- Shipping Postal/Zip
- Shipping Country
- To set the Default Values for the standard fields in the Payment Information section, scroll down to the Payment Options section and click Customize Headings and Labels. In the form that expands, you may set any or all default values using user-defined session variables:
- First Name
- Last Name
- Billing Street
- Billing City
- Billing State/Province/Region
- Billing Postal/Zip
- Billing Country
- Invoice First Name
- Invoice Last Name
- Invoice Email
- Invoice Phone
- Invoice Organization
- Click Save
NOTE: If you wish, you may use the same user-defined session variable as the default value in multiple fields.