Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[#5339] groupjive auto action - join groups

  • wjgadmin
  • wjgadmin
  • OFFLINE
  • Posts: 489
  • Thanks: 28
  • Karma: 4
8 years 10 months ago - 8 years 10 months ago #274565 by wjgadmin
please advise as to how i can achieve the below. please note that previously this was very simple & handled from the cbsubs plan/integration/groupjive where we could simply select the groupjive groups to "Join Group" & could select each group that we wanted that plan to initiate the user to be joined.

i need to:
- automatically join each user to multiple groupjive groups when they purchase/subscribe to the cbsubs plan. so i need to be able to select each groupjive group & have them automatically joined when they purchase/subscribe to a particular cbsubs plan.

auto actions seems to be not as user friendly & uses more of a coding language which i am not familiar with so hoping you can clear this process up for me. looking forward to the reply. thank you
Last edit: 8 years 10 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #274603 by nant
Replied by nant on topic groupjive auto action - join groups

wbusbytrader wrote: please advise as to how i can achieve the below. please note that previously this was very simple & handled from the cbsubs plan/integration/groupjive where we could simply select the groupjive groups to "Join Group" & could select each group that we wanted that plan to initiate the user to be joined.

i need to:
- automatically join each user to multiple groupjive groups when they purchase/subscribe to the cbsubs plan. so i need to be able to select each groupjive group & have them automatically joined when they purchase/subscribe to a particular cbsubs plan.

auto actions seems to be not as user friendly & uses more of a coding language which i am not familiar with so hoping you can clear this process up for me. looking forward to the reply. thank you


To add users to specific GJ groups when they become subscribers of a specific CBSubs plan you need to implement a GroupJive auto action on a CBSubs trigger.

Here is a relevant thread:
www.joomlapolis.com/forum/255-developer-members-support/230895-cbsubs-groupjive-integration-plugin-401-not-adding-user-to-gj-270-group-when-cbsubs-subscription-is-purchased#269382

You need to create a new Auto Action (click on the Auto Action button in your CB Plugin Management page just below the Auto Actions row) with following data:

Title: Add CBSubs subscriber to GJ groups

Global tab
Type: CB GroupJive
User: Automatic
Access: Everybody
Triggers: onCPayUserStateChange

Conditions tab
Conditional 1: [var3] Equal To PLAN_ID_HERE
Conditional 2: [var2] Equal To A

Action tab
Mode: Join Groups
Groups: SELECT_GROUPS_YOU_WANT_SUBSCRIBER_TO_JOIN
StatusL Active

Save the auto action and make sure it is published.
Then test that a new cbsubs subscriber to the specific plan is added to the group(s) you configured.

Please Log in or Create an account to join the conversation.

  • wjgadmin
  • wjgadmin
  • OFFLINE
  • Posts: 489
  • Thanks: 28
  • Karma: 4
8 years 10 months ago #274635 by wjgadmin
Replied by wjgadmin on topic groupjive auto action - join groups
thank you kindly Nick,
unfortunately upon a test it did not auto subscribe the user to the groups. please find attached images of the settings to be sure i didn't input something wrong. i prefer not to upload the "Action" tab image to the forum, however i have each group selected as "Join Groups" & "Active".
if you would like to take a look please let me know & i can pm you the log in details.
Attachments:

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #274673 by nant
Replied by nant on topic groupjive auto action - join groups

wbusbytrader wrote: thank you kindly Nick,
unfortunately upon a test it did not auto subscribe the user to the groups. please find attached images of the settings to be sure i didn't input something wrong. i prefer not to upload the "Action" tab image to the forum, however i have each group selected as "Join Groups" & "Active".
if you would like to take a look please let me know & i can pm you the log in details.


I just tested this action locally and it seems to work just fine.

How did you test?
Is the action published?

Please Log in or Create an account to join the conversation.

  • wjgadmin
  • wjgadmin
  • OFFLINE
  • Posts: 489
  • Thanks: 28
  • Karma: 4
8 years 10 months ago - 8 years 10 months ago #274717 by wjgadmin
Replied by wjgadmin on topic groupjive auto action - join groups

How did you test?
Is the action published?


thank you for the reply, i will send further details in the previous support ticket.
-the action is published & i double checked
Test Steps:
- created a 100% coupon code
- disabled cbspam plugin as i have it set to only allow 1 registration per IP
- went to front end registration & signed up as a test user for the corresponding plan
- was successfully registered for the plan but not to the GJ groups

i have double checked to make sure i followed everything as mentioned & from what i see it is identical. the only thing that i could imagine is that you may be referring to a "Plan ID" as something other than the ID that is listed in the ID column of the corresponding plan. if so please let me know where else to get the ID, otherwise i'm not sure why it is not working.
thank you in advance! please look for the support ticket with further details.
Last edit: 8 years 10 months ago by wjgadmin.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago - 8 years 10 months ago #274761 by nant
Replied by nant on topic groupjive auto action - join groups

wbusbytrader wrote:

How did you test?
Is the action published?


thank you for the reply, i will send further details in the previous support ticket.
-the action is published & i double checked
Test Steps:
- created a 100% coupon code
- disabled cbspam plugin as i have it set to only allow 1 registration per IP
- went to front end registration & signed up as a test user for the corresponding plan
- was successfully registered for the plan but not to the GJ groups

i have double checked to make sure i followed everything as mentioned & from what i see it is identical. the only thing that i could imagine is that you may be referring to a "Plan ID" as something other than the ID that is listed in the ID column of the corresponding plan. if so please let me know where else to get the ID, otherwise i'm not sure why it is not working.
thank you in advance! please look for the support ticket with further details.


Ok - I have verified that the trigger will not fire in frontend if a payment is not made.
I have no alternative trigger to propose at this time.

Will you be actually giving such 100% codes in real life or is this just a testing process?

Opened #5339 to address this in CBSubs.
Last edit: 8 years 10 months ago by nant.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum