Cookie and consent
The cookie magelan_aff is a marketing cookie. The script waits for the decision in the cookie banner (the cookie cookie_consent, as Swissup GDPR writes it):
- allowed: the cookie is set, the click is logged with a hashed IP and browser agent (90 days by default),
- refused: only an anonymous daily count is stored,
- not decided yet: nothing is stored; if the visitor leaves the page the click is lost.
A personal coupon code credits the order to the partner even if the visitor does not allow cookies. If the shop has no cookie banner, the default mode does not set the cookie. Under Stores › Configuration › Magelan › Affiliate Program › Advanced you can choose "Legitimate interest": that is your own legal assessment, speak to a lawyer. Add a sentence about the cookie and about partner data to your privacy policy.
Protection against abuse
The module flags a commission if the partner placed the order (same account or e-mail), the shipping address equals the partner's, or the order comes from the same IP as a click. Optionally limit the commissions per IP address per day (suggestion: 5).
When a partner buys through their own link or code
A partner who buys for themselves with their own code gets the code's discount. Whether they also get a commission on the same purchase, you choose under Stores › Configuration › Magelan › Affiliate Program › Advanced in When a partner orders through their own link or code:
- Flag for review (default): the commission is credited as usual, the order is only flagged so you can review it.
- Hold for review: the commission is not approved on its own, it waits until you release or reject it.
- Cancel the commission: no commission on own purchases. The partner still gets the code's discount.
The setting applies to new orders. Orders that are already flagged you release or reject in the flagged review.
Flagged commissions are under Commissions › Review flagged. Open one, write a comment and click Release or Reject commission. The decision goes to the partner's log.


