Postponed (maintainer needs more info)
Project:
Signup Integration for Ubercart
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2011 at 03:47 UTC
Updated:
31 Oct 2011 at 21:49 UTC
Jump to comment: Most recent file
Comments
Comment #1
cafuego commentedComment #2
cafuego commentedFixed issue title.
Comment #3
cafuego commentedComment #4
cafuego commentedThis time a working version. Check the signups correctly (why do the confirmed and temporary signups API calls have different params?) and cycle through the signed up users correctly. Also write an entry to the order admin log.
Comment #5
ezra-g commentedThanks for providing a patch!
However, you can already add user roles to users who purchase signups in 2 ways. Signup includes a signup_roles module, to associate the granting of roles with the creation of a signup, and you can use Ubercart core product features to grant a role when a signup-enabled product is purchased.
Is there a reason why these 2 solutions aren't sufficient?
Comment #6
cafuego commenteduc_roles can add a role to the user buying the signup, but that's not always the user being signed up to an event. Eg: managers buying conference attendance for subordinates.
I hadn't even noticed signup_roles to be honest, but just had a look at that, and it looks to add the roles to signups just fine ... but doesn't remove them when the signup is cancelled. Which is not helpful in my use case, where I provide access to content and functionality based on signed-up status... using a role is by far easiest for that.
The CA hooks in uc_signup in the patch can respond to a signup order being cancelled and remove the roles from the affected user(s). Additionally, different roles can be assigned or removed in each CA, so if users want, they can be flexible with role assignments... even add a role if a user is no longer signup up or remove a role when they do sign up.