Tags/topics: 
1
Answers
Vote up!
0
Vote down!

Drupal 7.x, Commerce License 7.x-1.3, and Selling Accounts + Assigning Roles...?

Thanks in advance for any insights anyone here can provide me on this issue but long story short, I'm trying to sell roles to users and something I've noticed in testing my entire checkout is that the roles get created, but the accounts do not (which leads me to assume that the users have to have a preexisting account in order to assign the role). For the most part, this makes complete sense because you can't really assign a role to someone without an account. However, this is making me want to mingle with Rules to figure out what step I need to change in order to make account creations preclude role assignments in the event that someone orders a license.

For example, I have a "Bronze" license which allows someone access to the "bronze role" for 30 days. I'm using the Paypal 7.x-2.3 module to act as my merchant handler (assuming this is the correct vernacular) and what I need to have happen is allow anonymous customers who purchase this license be given an account if they don't have one already whereby they are then assigned to the bronze role with said account.

Is this a Rule thing and if so, what steps should I take to get this purchase process to handle this? The current checkout rules are still straight out-of-the-box (no changes to what all comes with both Commerce and Commerce License).

Asked by: Casey Burk
on February 1, 2015

1 Answer

Vote up!
0
Vote down!

I think I figured out what I did wrong in all this... (Posting in the event that anyone else has a similar issue--maybe my information can help.)

Early on, I had created an additional rule to better classify completed orders via a paid-in-full event. This broke the other rules associated with both sending confirmation messages as well as activation of new accounts. After disabling this rule, everything is working again.

Now I just need to figure out how to handle paid-in-full events alongside my other rules and I'll be good to go (which I'll post about in a new thread).

Feel free to reach out to me in case you're experiencing any issues. I'll do what I can to help.

Answer by: Casey Burk
Posted: Feb 3, 2015