I’m not sure if this is possible within the current plugin features (haven’t found a way), and it’s quite hard to find similar questions in the forum, so, sorry if this has been asked before.
We need to register new affiliates and add a field that they can fill in case they are registering cause an existing affiliate has invited/recommended them (the part of adding a field is easy).
In case the new affiliate has come referred by an existing affiliate the “referee” (the one that has invited them) will be granted an additional 2% of the referred (the invited user) commissions.
ie: “Foo” invites “Bar”.
Foo has a 8% commission on sales + 2% of Bar commissions.
Bar has 8% commission on sales.
So if Bar gets 8% of a sale of 100 (8) Foo gets 1.28 and Bar still gets the full 8.