Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This module description says "This module integrates Userpoints into Ubercart for payment, awarding (to buyers, referrers, and sellers), and discounting." but I can't find any thing about awarding points to referrers in the module. I found this thread http://drupal.org/node/221327 regarding finishing referral functionality but I can't find it in the module.
Comments
Comment #1
hockey2112 CreditAttribution: hockey2112 commentedSame issue here. How do I award points for referrals? Seems as though this should be marked as "critical" since this is functionality that is supposed to be available in the module.
Comment #2
hockey2112 CreditAttribution: hockey2112 commentedI have figured out the method to award points to referring users based on the total product dollar amount in the referred user's order:
1. Install the following modules: Userpoints, Ubercart Userpoints, and User Referral (https://www.drupal.org/project/referral)
2. Create a User Reference autocomplete text field on the Account Settings page (admin/config/people/accounts/fields). I named the field "Referred By User Reference".
I then hid this field on the front-end via the settings on admin/config/people/accounts/display, and hid it on the account-edit screen via CSS.
3. Create a Rule to populate the Referred By User Reference field you created in step 2.
4. Create a Rule to Award Userpoints to Referring User.
How it all works:
When a new user clicks a referral link, their eventual user account's "Referred By User Reference" field is populated with the username of the referring user (via the Rule in step 3). Then, when that new user completes their transaction, the Rule in step 4 awards userpoints to the referring user. The amount of userpoints is 1:1 to the total product dollar amount in the order... so if the new user orders $100 worth of products, the referring user is awarded 100 userpoints. You can tweak the Userpoints settings to increase/decrease the redeemable value of those userpoints so that 100 userpoints is worth $100, $10, $1, $0.10, etc.
Note:
This setup does not take into account repeat customers... meaning that if a new user clicks a referral link, places an order, and then places another order within the active cookie timeframe, the referring user will get userpoints credit for both orders. I am also not sure what would happen if that new user then clicks another user's referral link... which referring user will get the userpoints credit after the next transaction.