- Cart Build: Ubercart Alpha8 (out of box, no hacking or mods)
- Before I run a test, I go in and clear those roles.
- The roles are set to be delivered on order Completion.
And I noticed something as I just went and performed yet another test.
First off, in the Store Order View, all of the tests confirm that the desired roles are being assigned to the appropriate user. Yet looking at that user file under Administer > User Mgmt > Users does not show the roles, and simple tests to confirm the role being present fail. So the role really isn't there.
Each time with this test user and this triple role product, it's the Approved Employer role that's being assigned, while Approved BGC and Approved Employee do not get assigned. So of course, at the end of the test, I remove the Approved Employer role (the one that actually was given) and then run the test again. But here's what shows up in the Order View for the test.
Date__________________ Comment__________________________________________
01/14/2008 10:37:16 AM Credit card charged: $1.00
01/14/2008 10:37:19 AM User has had the approved employee role renewed.
01/14/2008 10:37:19 AM User has been granted the approved employer role.
01/14/2008 10:37:19 AM User has had the approved bgc role renewed.
The system is registering that the user already had approved employee and approved bgc, and is RENEWING them, even though they still don't show up post-sale in the User list and pages which are set to only allow those roles fail to find the roles. It does see the approved employer as being missing and so GRANTS the role.
________________________________________________________________________
For this last test, I removed all Workflow conditions that would affect the Ubercart system post-sale and tried again. (Initially when I set up Ubercart, I had an issue where once the credit card payment was charged, all purchases would default to Pending rather than being automatically set to Completed. Looking around at some of the solutions on the forums here, I used the solution via the Workflow module to check the incoming order, determine whether the balance was zero, then change the Pending order to Completed.)
With the Workflow conditions deactivated, I ran another test using a new fresh account that had never purchased a role-granting product before.
First, I run into the problem again where it defaults to Pending, even though the credit card was charged $1.00 and the authorization was received back from the credit processor and shows in the Ubercart order view.
No roles have been granted, of course, because roles are set to be granted on Completion, and the order is at Pending. So I manually change the order status from Pending to Completed, at which point the final role in the 3 roles contained in the product is the one granted to the user, "approved bgc".
Looking up the user under User Mgmt > Users confirms that the "approved bgc" role is the only one now granted to the user. However, when I look under Role Expirations while editing that user, I see now that there are THREE Role Expiration contingencies all set up as if the three roles had been granted successfully, even though only one of those roles is checked and displays above the Role Expiration section as having been granted.
Order results are as follows:
01/14/2008 11:16:48 AM 35 Credit card charged: $1.00
01/14/2008 11:16:50 AM - Order created through website.
01/14/2008 11:20:57 AM 21 User has been granted the approved employee role.
01/14/2008 11:20:57 AM 21 User has been granted the approved employer role.
01/14/2008 11:20:57 AM 21 User has been granted the approved bgc role.
Don't mean to blow out the thread here, but I figured more info was better. I know this is a screwy issue, Shawn, I really appreciate your help on this!



Joined: 12/04/2007