In the advanced settings of a webshop, a new setting called 'TransportTypeCodeToClassificationCode' can be used to map a transport type code from the webshop order message to a specific sales order classification code.
The syntax is as follows:
- TransportTypeCodeToClassificationCode=<Transport type code, Sales order classification code>
For example:
- TransportTypeCodeToClassificationCode=Afhalen,WsAfhaal
The above example assigns the sales order classification with the code 'WsAfhaal' if the transport type code 'Afhalen' is used in the webshop order message. The prerequisite, of course, is that the transport type code exists in the webshop order message and that the sales order classification with the code 'WsAfhaal' exists.
It is possible to use the same 'TransportTypeCodeToClassificationCode' setting multiple times. This allows several transport type codes to be mapped to specific sales order classifications.
Example:
- TransportTypeCodeToClassificationCode=Afhalen,WsAfhaal
- TransportTypeCodeToClassificationCode=Pickup,WsAfhaal
- TransportTypeCodeToClassificationCode=Bezorging,WsBezorg
For backward compatibility, there is also a setting called 'TransportTypeDescriptionToClassificationCode'. This works almost identically to 'TransportTypeCodeToClassificationCode', but instead of using a transport type code from the webshop message, it uses the transport type description field.
It is not recommended to continue using this field because the mapping can break if the description is changed. A code provides a much more stable interface. Furthermore, the description in this setting must match exactly.