Hi, I was contacted by a customer who wants to setup a webstore with VirtueMart 2.0.22c with a really complex user points rule.
The rule is almost this (will try to explain it the best I can, have patience, thanks!):
- Chuck orders some downloadable good from the VM web store. The order grants him a referral link to share with up to 10 friends.
- Using Chuck's referral link, Larry orders some downloadable good from the VM web store. That's grants Chuck 75 points, and Larry gets a referral link to share with up to 10 friends.
- Using Larry's referral link, Bill orders some downloadable good from the VM web store. That's grants Chuck 50 points, Larry gets 75 points and Bill gets a referral link to share with up to 10 friends.
- Using Bill's referral link, Joe orders some downloadable good from the VM web store. That's grants Chuck 25 points, Larry gets 50 points, Bill gets 75 points and Joe gets a referral link to share with up to 10 friends.
- Using Joe's referral link, Tom orders some downloadable good from the VM web store. That's grants Chuck 10 points, Larry gets 25 points, Bill gets 50 points, Joe gets 75 points and Tom gets a referral link to share with up to 10 friends.
- Using Tom's referral link, William orders some downloadable good from the VM web store. That's grants Chuck 0 points (the deepest referral depth is up to four), Larry gets 10 points, Bill gets 25 points, Joe gets 50 points, Tom gets 75 points, and Eilliam gets a referral link to share with up to 10 friends.
The same explanation, but in a more graphical way
First Iteration
Name | Got Referral Link? | Points | Total Points |
Chuck | X | 0 | 0 |
Larry | O | 0 | 0 |
Bill | O | 0 | 0 |
Joe | O | 0 | 0 |
Tom | O | 0 | 0 |
William | O | 0 | 0 |
Second Iteration
Name | Got Referral Link? | Points | Total Points |
Chuck | X | 75 | 75 |
Larry | X | 0 | 0 |
Bill | O | 0 | 0 |
Joe | O | 0 | 0 |
Tom | O | 0 | 0 |
William | O | 0 | 0 |
Third Iteration
Name | Got Referral Link? | Points | Total Points |
Chuck | X | 50 | 125 |
Larry | X | 75 | 75 |
Bill | X | 0 | 0 |
Joe | O | 0 | 0 |
Tom | O | 0 | 0 |
William | O | 0 | 0 |
Fourth Iteration
Name | Got Referral Link? | Points | Total Points |
Chuck | X | 25 | 150 |
Larry | X | 50 | 125 |
Bill | X | 75 | 75 |
Joe | X | 0 | 0 |
Tom | O | 0 | 0 |
William | O | 0 | 0 |
Fifth Iteration
Name | Got Referral Link? | Points | Total Points |
Chuck | X | 10 | 160 |
Larry | X | 25 | 150 |
Bill | X | 50 | 125 |
Joe | X | 75 | 75 |
Tom | X | 0 | 0 |
William | O | 0 | 0 |
Sixth Iteration (Chuck stops receiving points, max depth 4)
Name | Got Referral Link? | Points | Total Points |
Chuck | X | 0 | 160 |
Larry | X | 10 | 160 |
Bill | X | 25 | 150 |
Joe | X | 50 | 125 |
Tom | X | 75 | 75 |
William | X | 0 | 0 |
Believeme, that's what my client wants.
It is possible to achieve this somehow?
Thanks!