Skip to Content Skip to Menu

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

[#5959] Delete plan with users subscribed

  • endoc
  • endoc
  • OFFLINE
  • Posts: 96
  • Thanks: 5
  • Karma: 0
8 years 8 months ago - 8 years 5 months ago #278472 by endoc
I have the need to replace a plan that has many users subscribed to it. When I try, I get the message that the plan cannot be deleted until all users are unsubscribed.

Is there a tutorial on an Auto Action to unsubscribe all users from one plan? Would this method be the best way to go about this task?
Last edit: 8 years 5 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #278548 by krileon
Replied by krileon on topic Delete plan with users subscribed
You should be able to do that using CBSubs Import to mass expire. The below should work.

Import users from: All users from a given subscription plan
Source Subscription plan: Your Plan
Status: Active
Destination Subscription plan: Your Plan
Current state: Expired
Subscription date: Today (don't think it'll particularly matter)

It's typically best in this case to disable new subscriptions, upgrades, and renewals for the existing plan then create your new plan as needed.


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.

  • endoc
  • endoc
  • OFFLINE
  • Posts: 96
  • Thanks: 5
  • Karma: 0
8 years 6 months ago #280136 by endoc
Replied by endoc on topic Delete plan with users subscribed
Kyle,

Thanks for the reply.

After following your instructions, I get this error notice:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 SQL=SELECT s.user_id FROM #__cbsubs_subscriptions s JOIN #__users u ON ( u.id = s.user_id AND u.block = 0 ) JOIN #__comprofiler c ON ( c.id = s.user_id AND c.confirmed = 1 AND c.approved = 1 ) WHERE s.plan_id = 22 AND s.status IN ()

Thoughts?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago - 8 years 6 months ago #280167 by krileon
Replied by krileon on topic Delete plan with users subscribed
You get that when trying to run the import? Please ensure you've latest CB 2.x nightly installed and CBSubs 4.0.2.


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.
Last edit: 8 years 6 months ago by krileon.

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

  • endoc
  • endoc
  • OFFLINE
  • Posts: 96
  • Thanks: 5
  • Karma: 0
8 years 6 months ago #280393 by endoc
Replied by endoc on topic Delete plan with users subscribed
CB and CBSubs are both current. Same error message comes after attempting the import. Any other ideas why?

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

  • endoc
  • endoc
  • OFFLINE
  • Posts: 96
  • Thanks: 5
  • Karma: 0
8 years 5 months ago #281439 by endoc
Replied by endoc on topic Delete plan with users subscribed
Still hoping to fix this issue. Any other things I can try?

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

Moderators: beatnantkrileon
Powered by Kunena Forum