Skip to Content Skip to Menu

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

CBsubs: Is it possible to have a default plan upon expiration?

  • wowza2
  • wowza2
  • OFFLINE
  • Posts: 86
  • Thanks: 7
  • Karma: 0
8 years 11 months ago #273526 by wowza2
Would like any expiring plan to be changed to an "Alumni" plan upon expiration.

I've been looking through the manual but haven't come across this particular situation.

eg active plan = Individual (Alias F) when it expires want to change it to
active plan = Alumni (Alias Alumnus)

Closest I could find in this forum was post #237206 which is suggesting using CB Auto Actions to update ACL levels. But not sure how this would work with CBSubs plans. Hoping for some feedback.

Joomla 3.4.5
CB Subs 3.0
CB 1.9.1

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

  • wowza2
  • wowza2
  • OFFLINE
  • Posts: 86
  • Thanks: 7
  • Karma: 0
8 years 11 months ago #273585 by wowza2
As a plan "B" trying to set up an Auto Action that puts users with an expired subscription into the Alumni user group (plan A would be to put them into the Alumni plan)

This is what I have so far:

Type: Usergroup
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditional: `cbsubs_subscriptions.status` Equal to X
Usergroup Action:

Mode: Remove Usergroups
Groups: all possible user groups

Mode: Add Usergroups
Groups: Alumni

Just not sure about the format of the variable and the "Equal to"

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #273588 by krileon
It's doable with CB Auto Actions, but you'll need to upgrade CB, CBSubs, and CB Auto Actions as your install is significantly out of date. CB Auto Actions comes with a CB Paid Subscriptions action that you could use to subscribe them to a new plan when their current plan expires.

An alternative is to have all your plans as child plans of a parent free lifetime plan. This way they'd always have the parent even if the child plans are expired.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • wowza2
  • wowza2
  • OFFLINE
  • Posts: 86
  • Thanks: 7
  • Karma: 0
8 years 7 months ago #279643 by wowza2
Now have up to date installation of CBSubs and CB

Trying to set up an auto action such that on a plan expiration the user is added to the "Alumni" user group,

Trigger: onCPayUserStateChange

Not sure about the Conditions. Currently have:

Conditions:

`cbsubs_subscriptions.status` Equal To X

Action:
Mode: Add Usergroups

Groups: Alumni


And I haven't done anything with the Parameters

Would appreciate your guidance re the above.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago #279677 by krileon
You need to use the below usage.

Plan Active
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Equal To A

Plan Expired
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Not Equal To A

Replace PLAN_ID_HERE with the ID of your plan found in the far right Id column in CBSubs > Plans. You can then use whatever action you like to act on plan active state.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • wowza2
  • wowza2
  • OFFLINE
  • Posts: 86
  • Thanks: 7
  • Karma: 0
8 years 7 months ago #279723 by wowza2
Thanks for that. I think I've got the conditions set up correctly (see screen capture attached) just not sure whether the "input substitution" switch should be set to "Yes"?
Attachments:

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

Moderators: beatnantkrileon
Powered by Kunena Forum