Save Customer Info Form (tag pair)
checkout_form all allow you to save customer info during your customers visit* to simplify the creation of a
multi-page checkout. CartThrob form tags makes it easy to
collect customer information, and output it later. You can later use
saved data to populate other forms (you output the data with the
customer_info tag pair). The
save_customer_info_form outputs a form, but you need to add the
fields yourself, example:
<input type="text" name="company" value="CartThrob" />
Required names for input fields
For security purposes, data will only be collected from inputs with the following names (except for custom_data listed below) All of these field names can later be used as variables in conjunction with the customer_info tag pair.
country_code (GBR, USA)
description (description of the entire order or the store itself; used by some gateways)
CVV2 (the number on the back of a credit card)
issue_number (used by certain payment gateways)
transaction_type (used by certain payment gateways)
bday_month (certain payment gateways request the beginning date for credit cards)
currency_code (GBP, USD)
region (used for taxes)
success_return (when an operation with some payment gateways is
complete this is where a user will be sent)
cancel_return (when an operation with some payment gateways fail this is where a user will be sent)
Where is the
Because all of this data is stored in sessions, we do not store the actual credit card number for security purposes. Though the chance of data theft is probably remote, and we do not want to encourage bad security practices by storing the credit card number.
Table of Contents
In addition to the parameters listed here, you may also use any of the Global Form Parameters.
Any fields required by the selected payment gateway are automatically validated. Use this parameter to require additional fields. Provide a pipe delimited list of required fields. Special values are "all" and "not".
The default is "yes". If for some reason you don't want your form to save customer shipping selections, set this to "no".
See Global Tag Variables.
You can save custom data to your customer info. If the data key matches the name of a field in your orders channel, that data will be saved when you place an order. You may also print out your custom data in the customer_info tag.
<input type="text" name="custom_data[something]" value="" />