salutation.dat configuration defines the salutations the buyer can choose from when entering their billing address and an alternative delivery address. The same file also determines how the complete salutation line in letters and emails is later built from them.

Where the file is located
The shop looks for the file in two locations, in this order:Structure
The file is tab-separated. The first row contains the column names, and from the second row on, each salutation has its own row.Columns are identified by their names in the header row, not by their position. This means the column order is up to you, but the spelling of the names is not. The shop does not evaluate more than ten columns.The module for forms and inquiries even aborts with a warning if one of the six columns is missing from the header row.
The first entry stays empty
The second row of the file, that is, the first data entry, should be left empty in theSalutation column. This makes the selection list in the shop start with an empty entry, so the buyer makes a deliberate choice instead of unintentionally accepting the first salutation.
For this empty entry, the shop prefixes the salutation code in the form value with
empty_, for example empty_00. It removes the prefix again during evaluation. So if you come across empty_ in form values or in the source code, it is not an error.Salutation code and gender code
If “Herr” uses code
01 in the German shop, then “Mr.” must use the same code 01 in the English shop. The same applies to the gender code.
The reason lies in further processing: the code is stored, not the text. Only if the code has the same meaning across all languages can first name and title be validated correctly later and a matching salutation be generated.
The salutation line
In theCompleteSalutation column, you assemble the complete salutation line from three placeholders.
You define how the title is formed in the
title.dat configuration.
Reference: title.dat configuration
This results in the typical patterns:
Example
Asalutation.dat for the language combination German and English. The first data row is the empty entry.
This example illustrates the code rule well:
01 means the same thing in both language blocks, namely the male individual salutation, and therefore also has the same gender code 1 in both.
You set the language your shop uses in the
Basic section of the shop.config.