Subscriptions being deleted on renewal

  • Trevor Smith
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 6 months ago #128622 by Trevor Smith
Subscriptions being deleted on renewal was created by Trevor Smith
Hi Taun

We have an membership subscription that expires on a fixed date. Members pay offline to renew and a member of staff renews the subscription in the front-end of Membership Pro. Membership renewal was due on 30-10-2019 and as members paid during last month they were renewed by the staff member. A 'Thank you' email was automatically sent to the subscriber but the entry was then deleted from MP for some reason! I tested again today with the new 'Grace period' field set to 30 days and two 'Thank you' emails were sent, one to say it was renewed untl 2020 and the second until 2021 but again there was no subscription in MP afterwards.

Does it have something to do with the way we have it configured?

Plan settings:


Config setting:


regards
Trevor

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

More
4 years 6 months ago #128639 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Subscriptions being deleted on renewal
Hi Trevor

Go to Membership Pro -> Configuration, set Subscription Renewal Behavior config option to Create New Subscription instead of Update subscription

After that, everything should work as expected

Tuan

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

  • Trevor Smith
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 6 months ago #128648 by Trevor Smith
Replied by Trevor Smith on topic Subscriptions being deleted on renewal
Hi Tuan

Thanks for that. Is there a way of automatically removing the old subscription?

Best regards
Trevor

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

More
4 years 6 months ago #128649 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Subscriptions being deleted on renewal
Hi Trevor

No, we don't have a way to do that. Not sure why you want to remove old subscriptions?

Tuan

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

  • Trevor Smith
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 6 months ago #128650 by Trevor Smith
Replied by Trevor Smith on topic Subscriptions being deleted on renewal
Hi Tuam

We wanted to remove them to avoid confusion. Each member can have up to 3 subscriptions to different plans each expiring different times of the year and I was concerned that the manager might choose the wrong one.

Another issue we have just noticed is that we are getting strange results with different browsers. When renewing a subscription:
  • Using Firefox it works OK
  • Using Chrome and Opera two subscriptions are added, one expiring 2020 and the other 2021
  • Using Edge two subscriptions are added both expiring in 2020

regards
Trevor

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

More
4 years 6 months ago #128662 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Subscriptions being deleted on renewal
Hi Trevor

The question here is how you renewed the subscription? Please let me know so that I can check to see why there is duplicate records and get it sorted

Regards,

Tuan

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

  • Trevor Smith
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 6 months ago #128672 by Trevor Smith
Replied by Trevor Smith on topic Subscriptions being deleted on renewal
Hi Tuan

They were renewed from the front-end by searching for the subscription, ticking the checkbox and clicking the renew button.

Best regards
Trevor

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

  • Trevor Smith
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 6 months ago #128873 by Trevor Smith
Replied by Trevor Smith on topic Subscriptions being deleted on renewal
Hi Taun

Are you able to reproduce this?
Any progress on this please?

Best regards
Trevor

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

More
4 years 6 months ago #128880 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Subscriptions being deleted on renewal
Hi Trevor

I could not re-procedure the issue. Could you please submit a support ticket sending us:

- Super admin account of the site
- Link to the subscriptions management page in the frontend

We will try to check it directly on your site to see if we can see the issue and if Yes, we will fix it

Tuan

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

More
4 years 1 week ago #133675 by Daniel Duvald
Replied by Daniel Duvald on topic Subscriptions being deleted on renewal
I'm seeing this too on a client website. I've found 2 cases the last couple of days, where a recurring subscription is renewed through a custom payment plugin using this code:

$model = MPFModel::getInstance('Api', 'OSMembershipModel', );
$model->renewRecurringSubscription($row->id, $row->subscription_id, $transactionid);

I've set up a function in my plugin to email the subscription details on renewal.

What I've found is, in 2 cases within a couple of days, the subscription was deleted from Membership Pro (the user no longer had a subscription).

We have also set Subscription Renewal Behavior to Update Subscription. But answering this issue with "just set it to create new subscription" is not a good answer. Clearly there is an issue in the code that needs to be fixed.

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