[SOLVED] Unsubscribe from Plan A if upgraded to Plan B

9 years 3 months ago #256407 by krileon
Replied by krileon on topic Unsubscribe from Plan A if upgraded to Plan B
I believe that's intended behavior. Your free lifetime plan replaces the internal free plan normally give to users when they don't have a subscription. I don't think there's any way to remove this behavior. You could use CB Auto Actions to unsubscribe from the free lifetime plan when subscribing to the paid plan, but when the paid plan expires you create a scenario where the user has absolutely no plan and depending on your configuration could result in weird behavior.


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 to join the conversation.

9 years 3 months ago #256409 by mctrading
Replied by mctrading on topic Unsubscribe from Plan A if upgraded to Plan B
ok, i will try to find an solution without the auto actions

thank you!!!

Please Log in to join the conversation.

9 years 3 months ago #256411 by krileon
Replied by krileon on topic Unsubscribe from Plan A if upgraded to Plan B
You maybe able to use a parent plan to force the behavior. Example setup as follows.

Parent Plan: exclusive free lifetime
- Child 1: exclusive free lifetime
- Child 2: exclusive paid

Then cause child 2 to expire/unsubscribe and see if they still have the child 1 plan. This may give you the behavior you're wanting, but then they'll always have the parent plan.


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 to join the conversation.

9 years 3 months ago #256433 by mctrading
Replied by mctrading on topic Unsubscribe from Plan A if upgraded to Plan B
i tried this but i had the same result
i paid for Child 2 - Child 1 was set to upgrade to
after Child 2 expired there was again the fallback to Child 1

i would try it with unsubscribing the free plan
then i hope after expiring of the paid plan the user can not login (because no free membership anymore)but he will see the paid plan to renew

but i have no idea which trigger i should use and which condition
i tried many things but nothing was sucessfull

thank you for all your help today!!!

Please Log in to join the conversation.

9 years 3 months ago #256470 by krileon
Replied by krileon on topic Unsubscribe from Plan A if upgraded to Plan B
The below can be used in CB Auto Actions to perform actions on CBSubs subscription state changes.

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

So in your case PLAN_ID_HERE would be the ID of your paid plan. Then you'd use a CB Paid Subscriptions action and unsubscribe from your free plan.


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 to join the conversation.

9 years 3 months ago #256545 by mctrading
Replied by mctrading on topic Unsubscribe from Plan A if upgraded to Plan B
Hello Kyle,

i have tried the version Plan Active and payed with offline dummy account and also with paypal sandbox, but everytime i had both plans with status "A" in the subscriptions table.

I have also tried the version Plan Expired. After my paid Plan has expired, the free Plan was still active.

I upgraded again to the paid Plan and so both Plans were active.
Then i have changed in the version Plan Expired the [var2] to "C" which should be there if an plan is unsubscribed. I have unsubscribed the paid Plan in the backend and now it was working well.

Do you have an idea why? Is there an other trigger that i could try, e.g. something that is working if the user is sometimes later login again and in this moment the membership status is checked for the login?

Thank you for your help!!!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.313 seconds

Facebook Twitter LinkedIn