Role Assignment

Project:Ubercart Contributions
Component:Code
Category:
Priority:critical
Assigned:mach5_kel
Status:active
Description
Project: 
Ubercart

I have just updated my Ubercart to 1.3. Previously my roles were assigned no problem, however, they have stopped working now.

They are set to pending: Assign role. So it should be assigning them for every order, no problem. (As it did before I updated).

Nothing else in my settings have changed except the update.

I have various roles associated, 1 role to 1 product. My roles are set to assign when pending, so my customers can get there roles right away.

The roles module does not rely on workflow-ng, correct? I have had problems with workflow-ng. However, I find that is seems to be working fine and changing my order status's as needed. But, it shouldnt matter because roles are assigned at pending which is the default first role.

I know this is not much to go on, but any help is appreciated.

Eric

Version: 
Ubercart 1.3
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Role Assignment

Is it actually passing through the Pending status? It might be going straight from In Checkout to Payment Received depending on your settings... I'm not sure what version you were on before, but the payment received configuration was added in sometime during the release candidates.

mach5_kel's picture
Offline
Joined: 03/25/2008
Juice: 79
JQuery
Assigned to:Ryan» mach5_kel

There hasent been any order since, but it semems like maybe this was a jquery issue? I had updated to 2.0, but it seems like that drupal had not updated correctly. I re-updated the module, and my other jquery dependent modules started behaving better.

I hope this fixes it.

I will post again after I know for sure.

Eric

mach5_kel's picture
Offline
Joined: 03/25/2008
Juice: 79
Re: JQuery

Nope, that did not fix it. Roles are still not being assigned. Anyone else have any ideas?

Thanks everyone,

Eric

mach5_kel's picture
Offline
Joined: 03/25/2008
Juice: 79
Ok, Fixed.

For anyone else having this problem. I needed three steps to make it work properly.

1. Needed to have jquery working properly. Even though I dont think this was even jquery dependent, it somehow stopped things from working properly. (Using Jqeury 1 here, not ver 2.)

2. As suggested above, I needed to have the role assigned to "payment recieved" rather than pending, because even though my logs showed pending before payments recieved, no role was actually assigned as it "jumped" that status.

3. I used the clone module. This cloned the product pages so I didn't have to type everything all out again. However, it cloned the SKU's as well. Make sure that your SKU's are unique and that roles are assigned according to that SKU. I had it set to "Any" for some. Whether that made a difference or not, I dont know. But, just to be sure. I set each role assignment to a specific SKU instead of "any".

As I said above. I needed all of those steps to make it work. And, now it does.

Thanks from Canada for everyone who commented. I hope this can help someone else if they need it.

Eric