PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Discount based on user role

  1. Is there any way to base a price calculation field on the the user role of a logged in user?

    We want to give a 10% discount to our members in level 1, 20% to the members in level 2 and 30% to members in level 3.

    Any thoughts on how I could achieve that?
    Alexander

    Posted 6 years ago on Sunday May 12, 2013 | Permalink
  2. I think I worked out half of how this can be done. I set the User Meta in the User Registration Settings to fill one field with the user role using wp_user_level. Will that work? Not sure as the user role is not set before the form is submitted...

    If that works, then I have the next question: Can I use IF THEN ELSE in a calculation field, e.g.
    (IF {User Role:9}="Level1" THEN "10" ELSE IF {User Role:9}="Level2" THEN "20" ELSE IF {User Role:9}="Level3" THEN "30" ELSE "0") * ...

    Thanks
    Alexander

    Posted 6 years ago on Sunday May 12, 2013 | Permalink