You can set up your script to support many levels, in which case each affiliate can encourage other users to sign up under his level, and the top level that made the invitation will always get a commission for all actions taken at the level below him.
Suppose Affiliate-A invites his friends or shares the URL with others, and as a result, a new user signs up to be your affiliate using the Affiliate-A invitation link.
Affiliate-B will thus now fall under Affiliate-A.
The Affiliate-A account will be affected by every activity on the Affiliate-B account, and he will get an automatic commission for any actions Affiliate-B takes on his account.
The admin under the left menu sets that commission: MLM Levels > MLM
The script supports a maximum of 10 levels, which the administrator will be able to select for his website.
The value of each active level’s sale, action, and click may be changed by the admin.
You may learn more about how MLM operates by visiting these two links:
Case 1: MLM for local store module,
Case 2: Integration of MLM for your own online business or website: