Skip to Content Skip to Menu

Upgraded plan status not being marked "U"

  • edjec
  • edjec
  • OFFLINE
  • Posts: 132
  • Thanks: 12
  • Karma: 3
  • Add-ons
9 years 6 months ago #263249 by edjec
We are experiencing an issue with plans that expire and shortly after expiration are renewed and upgraded to a higher plan are not being marked status “U” for the original plan.

In the raw database cbsubs_subscriptions, status for the expired plan is X and a new upgraded plan has been created marked status A.

This causes an issue with our renewal postcard program that looks for recently expired plans (within a date range) with a status of X as it generates a renewal reminder card for those that have upgraded within days of plan expiration because the original plan has not been changed to status U.

The system correctly changes status to U on upgrade if the original plan has not expired, but does not if the plan has expired and then renewed and upgraded. Is this normal or a glitch?

Thanks

CB 1.9.1, CBS 3.0.0, J 2.5.28

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 6 months ago - 9 years 6 months ago #263251 by krileon
Replied by krileon on topic Upgraded plan status not being marked "U"
If the plan is expired you're not upgrading from it. You can only upgrade from active plans. Subscribing to a new plan with your current expired is just a new subscription. Believe the reason for this is active plans that are upgraded still have their expiration date tracked until it truly expires; this allows for fallback if the new plan expires before the upgraded plan. Believe it's also used to determine if prorating needs to calculate.


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: 9 years 6 months ago by krileon.
The following user(s) said Thank You: edjec

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

  • edjec
  • edjec
  • OFFLINE
  • Posts: 132
  • Thanks: 12
  • Karma: 3
  • Add-ons
9 years 6 months ago #263254 by edjec
Replied by edjec on topic Upgraded plan status not being marked "U"
Thank you for the quick response and explanation.

Is there a method within CB Subs to identify recently expired and then upgraded plans? My guess is that I will have to write a custom routine to identify these plans.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 6 months ago #263316 by krileon
Replied by krileon on topic Upgraded plan status not being marked "U"
The recently expired plans would just look like normal expired plans so I don't know how you're going to distinguish them from other expired plans in that case. Maybe just add to your usage to ignore checking expired plans if they have an active plan of any kind?


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.

  • edjec
  • edjec
  • OFFLINE
  • Posts: 132
  • Thanks: 12
  • Karma: 3
  • Add-ons
9 years 6 months ago #263340 by edjec
Replied by edjec on topic Upgraded plan status not being marked "U"
I was thinking along those lines too; compare rows by user_id and if multiple rows of same id with one active plan and expiration date of expired plan falls within date range, skip record.

Thanks again, Kyle

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

Moderators: beatnantkrileon
Powered by Kunena Forum