News:

Support the VirtueMart project and become a member

Main Menu

Need some advise on complex User Points rules

Started by razor7, September 27, 2013, 21:41:10 PM

Previous topic - Next topic

razor7

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

 
   
   
   
   
   
   
   
NameGot Referral Link?PointsTotal Points
ChuckX00
LarryO00
BillO00
JoeO00
TomO00
WilliamO00
Second Iteration

 
   
   
   
   
   
   
   
NameGot Referral Link?PointsTotal Points
ChuckX7575
LarryX00
BillO00
JoeO00
TomO00
WilliamO00
Third Iteration

 
   
   
   
   
   
   
   
NameGot Referral Link?PointsTotal Points
ChuckX50125
LarryX7575
BillX00
JoeO00
TomO00
WilliamO00
Fourth Iteration

 
   
   
   
   
   
   
   
NameGot Referral Link?PointsTotal Points
ChuckX25150
LarryX50125
BillX7575
JoeX00
TomO00
WilliamO00
Fifth Iteration

 
   
   
   
   
   
   
   
NameGot Referral Link?PointsTotal Points
ChuckX10160
LarryX25150
BillX50125
JoeX7575
TomX00
WilliamO00
Sixth Iteration (Chuck stops receiving points, max depth 4)

 
   
   
   
   
   
   
   
NameGot Referral Link?PointsTotal Points
ChuckX0160
LarryX10160
BillX25150
JoeX50125
TomX7575
WilliamX00

Believeme, that's what my client wants.

It is possible to achieve this somehow?

Thanks!
MGS Creativa - VirtueMart Payment Plugin Experts
http://www.mgscreativa.com

Take a look at our downloads section for VirtueMart payment plugins and mouch more!
http://www.mgscreativa.com/en/online-store

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart