# Choose affiliate

#### Enable customers to select an affiliate while placing an order

When this setting is activated, the customer can choose which affiliate should receive the provision/commission for the order. This is suitable, for example, if you want to use the affiliate system to give your customers the opportunity to make a donation with their order to an organisation of their choice. As soon as somebody has been promoted by an affiliate code, that person will automatically be pre-entered in the selection. In any case, they can change and select the affiliate who is to receive the provision.

#### Prioritize lifetime affiliate instead of the affiliate-selection

If a permanent affiliate has already been registered for a customer (this can be done in the basic configuration), the selection of an affiliate is ignored. In this case, the permanent affiliate will always receive the provision.

#### Field to be selected when choosing an affiliate

Here you define from which affiliate attributes the customer may choose to select their affiliate when completing the order. In case the respective attribute has not been defined for an affiliate, the affiliate code is used as a fallback. \
Possible attribute options are:

* Affiliate code
* First and last name
* Company


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codegiganten.de/plugin-documentation/en/apps/affiliate-marketing/configuration/choose-affiliate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
