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] Customer role

5 Posts
3 Users
0 Reactions
1,664 Views
Posts: 3
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
(@lottieg)
Active Member
Joined: 3 years ago
[#49411]

Apologies if this is a duplicate post - my previous one disappeared. 

I have the user roles set to these groups:

  • Customer / Registered Student - post and view
  • Subscriber /Registered Non-Student - no posts and view

My set up is to purchase a course through WooCommerce via an outside link to ThriveCart. The purchase adds the Student tag via GroundHogg. 

If the person cancels a subscription, they lose the student tag and get a non-student tag. They are still registered to the website. 

This set up allows access to the LearnDash courses and works fine. 

Except. The purchase doesn't seem to change the role to customer from registered user. So, WPForo doesn't see the role as customer, only subscriber and access is limited. I think this is possibly due to the purchase being on a third-party site (ThriveCart). 

Can WP Foro see other metadata like the GroundHogg tag and use that to change the user role to Customer? 


4 Replies
dimalifragis
Posts: 2600
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
(@dimalifragis)
Famed Member
Joined: 6 years ago

btw: I can't see the real forum page, but i HOPE you have EXCLUDED wpforo page(s) from W3TC cache plugin.


3 Replies
(@lottieg)
Joined: 3 years ago

Active Member
Posts: 3
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

@dimalifragis yes I have.  Only registered users can see the forum and registered students can use it. The Groundhogg meta data isn't recognizing the purchase either, so I need a different way to switch roles (automatically) when someone purchases/cancels via ThriveCart, or using Groundhogg Tags.


Chris
(@chris)
Joined: 5 years ago

Famed Member
Posts: 3609
dimalifragis
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

Hi @lottieg,

wpForo has Role Synch Option, with it, you can synch wpForo User Groups with WP Roles.

So if the User Role changes from Subscriber to Customer, wpForo Role should change by the Synchronization setup.


(@lottieg)
Joined: 3 years ago

Active Member
Posts: 3
dimalifragis
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

@chris I found a solution using GroundHogg to change the user role when the ThriveCart purchase was successful. Hopefully it will also change the role back if they cancel their subscription/payment. 

This was by far the easiest option - I also looked into webhooks briefly but felt that was beyond my skill set. 


Share: