Notifications
Clear all

[Solved] User role and usergroup advice w/ membership and subscriptions

3 Posts
2 Users
0 Reactions
1,417 Views
Posts: 85
Topic starter
(@zeeshan333)
Estimable Member
Joined: 5 years ago

My website uses woocommerce memberships, woocommerce subscriptions and wpforo

I was trying to think of a smart way of setting up user roles and usergroups so that I don't run into any issues in the future.

The problem

The problem I'm facing is that I need users that purchase 'Subscription A' to be given wordpress user role 'A' and 'Subscription B' to be given the wordpress user role 'B'.

Both subscriptions should also set users to usergroup 'C'.

When the subscription is cancelled, the user roles should be allocated back to 'Subscriber' and usergroup should be allocated back to 'Registered'.

The above I've managed to accomplish via the woocommerce settings and an extra bit of code.

However this is when the problem occurs, as I have many user groups on the forum which have associated user role  'subscriber'

This causes a user to be assigned all the other user groups associated with subscriber, once their subscription  is cancelled - as they revert back to 'Subscriber' from user role 'A' or 'B'. However, I want them to be only h have the default usergroup 'Registered'.

Note: I have

Solution

Is there a nice, clean workaround for this? Apologies if I haven't articulated the problem in the best way.

2 Replies
Posts: 85
Topic starter
(@zeeshan333)
Estimable Member
Joined: 5 years ago

Another note: the other 'many usergroups' i have are all secondary usergroups

Robert
Posts: 10587
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @zeeshan333,

You can use Paid Membership plugins with wpForo.

1st - MemberPress, it requires the following combination:

  1. MemberPress
  2. wpForo - MemberPress Integration

 

2nd - SureMembers, it requires the following combination:

  1. SureMembers
  2. wpForo - SureMembers Integration

 

3rd - WooCommerce, it requires the following combination:

  1. WooCommerce
  2. WooCommerce Memberships
  3. wpForo - WooCommerce Memberships Integration

 

4th - Paid Membership Pro, it requires the following combination:

  1. Paid Memberships Pro
  2. wpForo - Paid Memberships Pro Integration

 

Other then the WooCommerce, you should read the topics of paid membership tag: https://wpforo.com/community/?wpfs=paid+membership&wpfin=tag