Free subscription plan status

  • Kenneth Svendlund
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 3 months ago #131470 by Kenneth Svendlund
Free subscription plan status was created by Kenneth Svendlund
Hello

I have two subscription plans set up. One is a Free plan(Member) that is set to Active when users sign up, second plan(Affiliate) is also a Free plan but set to Pending when users sign up. The Affiliate plan is auto subscribed when users sign up for the Member plan. I want to be able to manually activate the Affiliate plan.

The issue is is that the Affiliate plan subscriptions are automatically set to Active when users sign up even though it should be set to Pending.

I hope someone maybe can help figure out why this happens and direct me to a resolution.

Thank you!
Kenneth

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

More
5 years 3 months ago #131474 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Free subscription plan status
Hi Kenneth

So user is subscribed automatically to Affiliate plan when their subscription for Member plain is active? If so, not sure why you still want to approve subscription for Affiliate ? The subscriber is already approved for Member plan, so he should be approved for Affiliate plan, too

Tuan

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

  • Kenneth Svendlund
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 3 months ago #131488 by Kenneth Svendlund
Replied by Kenneth Svendlund on topic Free subscription plan status
Hello Tuan

It's not the subscriber that should be approved but the plan. In my opinion, one subscriber should be able to have several subscriptions and they should be able to be approved individually.
Seems to me that's also the way you have planned the system as the approval setting is on the plan and not the subscriber.

I have different content on my site for each plan and want to be able to approve the plans separately.

Thanks,
Kenneth

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

More
5 years 3 months ago #131522 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Free subscription plan status
Hi Kenneth

In this case, you will need to make some small modification to the code of the auto subscribe plugin to have it works as you want:

1. Open the file plugins/osmembership/autosubscribe/autosubscribe.php

2. Find this line of code (at line 95):
Code:
$data['published'] = 1;

3. Change it to:
Code:
$data['published'] = 0;

After that, it should work as expected

Regards,

Tuan

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