How do assign a role to user after add to cart in ubercart in drupal 7?
Try to do this using Rules.


Add a new rule on event complete checkout.
Give your required conditions.
Add Assign role to user as action.


For your scenario you can do it using multiple rules.

Hope this will help you.