AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

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

3 Posts
2 Users
0 Reactions
2,138 Views
Posts: 85
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@zeeshan333)
Estimable Member
Joined: 7 years ago
[#23992]

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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@zeeshan333)
Estimable Member
Joined: 7 years ago

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


Robert
Posts: 10752
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months 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


Share: