This a feature addition to oscommerce-2.2ms2 that adds a referral point system.
The configurable features of the system are:
1. Enable/Disable the system
2. Money value of the point.
3. How the referral ID is generated either by auto, user entered or email address.
4. Set minimum length of the entered referral ID
5. Set when the referral ID is accepted either at checkout or when account created.
The system also has a order total module that can be installed or uninstalled. It's enabled state is tied to whether the referral system is enabled or disabled.
The custoemr can choose to redeem all or a portion of their points on checkout. The system has been designed to prevent self referrals and you can not spend over the amount of points they have. The system also makes sure user entered ids are unquie and that the referral code they entered is valid.