Subscription Approval

  • Christian Jull
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 6 months ago #31678 by Christian Jull
Subscription Approval was created by Christian Jull
Is there a setting to allow all new subscriptions to be be set to 'pending'? We need to approve each membership before it is active and it looks as though we can only do that with a manual payment.

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

More
11 years 6 months ago #31680 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Subscription Approval
Hi Christian

We will have to customize the code if you want to have the feature. If a user complete payment at Paypal, what should be his status ?

Tuan

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

  • Christian Jull
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 6 months ago #31695 by Christian Jull
Replied by Christian Jull on topic Re: Subscription Approval
For Paypal, we would like 'Pending'.

Thanks :)

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

More
11 years 6 months ago #31726 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Subscription Approval
Hi

So you will need to edit the Paypal payment plugin code. The steps are :

1. Open the file components/com_osmembership/plugins/os_paypal.php

2. Find the code below (there are few of them) :
Code:
$row->published = 1 ;

3. Change it to :
Code:
$row->published = 0;

After that, it will work as expected.

Regards,

Tuan

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

  • Christian Jull
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 6 months ago #31735 by Christian Jull
Replied by Christian Jull on topic Re: Subscription Approval
That worked, thanks. However, I notice that, despite the membership being 'pending', the user has full access to 'active' member areas... :huh:

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

More
11 years 6 months ago #31822 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Subscription Approval
Then it is something wrong with your settings. The simplest way to get it work is that you can go to Membership Pro->Configuration, find the config option "Send Activation Email", set it to No.

After that, when users subscribe to the plan, his account will be set as "blocked" and he could not login until you set the Membership to Active !

Please try that solution (the other solution will need to use Joomla ACL).

Tuan

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

  • Christian Jull
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 6 months ago #32139 by Christian Jull
Replied by Christian Jull on topic Re: Subscription Approval
Yes, that puts the Membership Pro account as 'pending', but it still automatically assigns the Joomla user account with the full membership ACL. No email is sent, but if the user signs in, that have full access.

There is an additional problem I've now spotted. I created the Membership Pro Joomla Group Settings for each plan after importing most existing membership accounts from the current Wordpress system. These accounts did not assume the correct Joomla ACLs once I added the Group Settings. Do I need to change all of these manually?

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

More
11 years 6 months ago #32236 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Subscription Approval
Dear Christian

1=> For the issue with ACL, I am sorry. You will have to remove some other codes. Please look at the file again, find the below codes and remove them :
Code:
JPluginHelper::importPlugin( 'osmembership' ); $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger( 'onMembershipActive', array($row));

After that, please try again.

2. For the importing process :

- Please make sure you are having latest version. Maybe download it again from My Downloads section, upgrade it to your site.

- I assume you are importing subscribers via CSV Import feature ? If so, please make sure you you have a published column in the csv file, set data for that column for all records to 1. Then re-import and it should work well !

Tuan

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