Within SimpleCart you have the ability to use multiple addresses for the order itself and the delivery.

Checkout form setup

To request the additional delivery address, you'll need to add some fields to the same checkout form. These fields typically use a prefix delivery_, so you get delivery_firstname, delivery_lastname, delivery_street, delivery_number and so on.

As SimpleCart doesn't know what these fields are out of the box, you need to add them to the field mapping on the FormIt call.

Mapping the address fields

In the default checkout form (discussed here), it uses two address fields which are mapped to a different field already. These are street and number, and the mapping for that looks like this:

[[!FormIt?
...
&orderAddress=`address1:street,address2:number`
...
]]

As you can see, in this mapping parameter the fields "street" and "number" are mapped to SimpleCarts "address1" and "address2" fields. Multiple form fields can be separated by a comma.

Mapping multiple checkout form fields into one SimpleCart field is also possible by adding additional fields after a colon, for example address1:street:number. Each field will be added separated by a space.

The mapping key for the delivery address is done the same way, but with &deliveryAddress. For example: