krileon wrote: As GJ has not been upgraded for CB 2.x yet I can't really guarantee that's going to function. You can try using GJ Auto then acting on a CBSubs trigger to see if it'll function that way. Below is how you'd setup your GJ Auto.
Plan Active
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditional 1: [var3] Equal To PLAN_ID_HERE
Conditional 2: [var2] Equal To A
Plan Expired
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditional 1: [var3] Equal To PLAN_ID_HERE
Conditional 2: [var2] Equal To X
Replace PLAN_ID_HERE with the plan id you want to condition against. You can find your plan id within CBSubs > Plans under the Id column on the far right of the table.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
You need to use only onCPayUserStateChange trigger. What you're wanting will not happen when you click to select a plan though. It will happen after the subscription has become completely active (e.g. after they're registered). I'm still unsure if even this will work though as GJ hasn't gotten its CB 2.x upgrade yet.Did that, but it did not seem to work. I used both onCPayAfterPlanSelected and onCPayUserStateChange ...
Yes, it's possible to add a user to a GJ group using a query, but none of the GJ triggers or integrations that depend on those triggers will fire.Quick question - - is it possible to use the cbsubsSQL plugin to accomplish what I'm trying to do i.e. add the user to a group depending upon plan chosen?
INSERT IGNORE INTO `#__groupjive_users` ( `user_id`, `group`, `date`, `status` ) VALUES ( '[user_id]', GROUP_ID_HERE, NOW(), 1 )
Please Log in to join the conversation.
krileon wrote: I'm still unsure if even this will work though as GJ hasn't gotten its CB 2.x upgrade yet.
Please Log in to join the conversation.