Support Forum

How to automatically move people from one user group to another (with Wishlist)

JM John McIntyre
John McIntyre
Member

Got a tricky situation.

Someone buys my product via Wishlist member plugin.

Wishlist is integrated with Simple Press.

Simple Press sees the new member and adds them to a user group called $1 trial (with limited access to certain forums and topics).

7 days after someone joins, Wishlist automatically upgrades them from $1 trial to Gold

The problem is that when Wishlist upgrades someone, their membership doesn’t change in Simple Press.

That means they’re meant to have full access to the forum, but simple press still thinks they’re on a $1 trial.

Do you know how to sync up Wishlist and SP so that when I change someone’s membership level in Wishlist, it’s updated in Simple Press?

I’ve already followed the guide here, but that does not solve the problem.

Any other ideas?

40 Answers

New Answer

MP Mr Papa
Mr Papa
Member

it will work, provided you have identified a unique wp role for each of your wishlist member levels… when wishlist changes a member level, it then changes the wp role… if you are mapping a wp roles to an sp usergroup via forum – usergroups – map users to usergroups, they will get the sp usergroup changed….

of course, this assumes you have different sp usergroups and permissions defined for each of the wishlist member levels too…

JM John McIntyre
John McIntyre
Member

Hmm. I’m using WP role manager plugin.

2 memberships in SP –

McMastersGold

McMastersTrial

and 2 in WL –

Gold

$1 Trial

WL memberships map to relevant role in SP.

Not sure how to test it.

I manually upgraded one of my test accounts via wishlist, and it didn’t upgrade in Simple Press, but perhaps the auto upgrade does it differently?

MP Mr Papa
Mr Papa
Member

please define your wp roles…  then tell us your wishlist levels and which wp role they are mapped too.. and finally, from forum – usergroups – map users to usergroups, please tel us which sp usergroups you have mapped to which wp role..

JM John McIntyre
John McIntyre
Member

WP Roles – 

McMastersGold

McMastersTrial

 

Wishlist levels and WP role they’re mapped to – 

Gold => McMastersGold WP Role

Gold ($1 trial) => McMastersTrial WP Role

 

SP Usergroups –

Default usergroup membership:

Default usergroup for guests: Guests
Default usergroup for new members: McMastersTrial

Usergroup memberships based on WP role:

Default usergroup for administrator: Moderators
Default usergroup for editor: McMastersGold
Default usergroup for author: McMastersGold
Default usergroup for contributor: McMastersGold
Default usergroup for subscriber: McMastersTrial
Default usergroup for mcmastersgold: McMastersGold
Default usergroup for mcmasterstrial: McMastersTrial

MP Mr Papa
Mr Papa
Member

And how do they get from trial to Gold? Wishlist levels that is…

Do they purchase? Admin move? Etc..

Are you limiting to single usergroup? It’s an option…

And are you using forum ranks and giving usergroup membership based on rank?

JM John McIntyre
John McIntyre
Member

When they join, they join under Gold $1 trial membership in WL. 7 days later, WL automatically upgrades them to Gold.

The business model is they pay $1 for 7 days access, then start paying a monthly rate. But I want to restrict their access to the forum for the first 7 days so they don’t go in there and download everything then cancel before the 7 days are up.

Haven’t been using forum ranks.

YS Yellow Swordfish
Yellow Swordfish
Member

Not sure where Steve was going with the question on forum ranks so let’s leave that aside.

Having read through this the one question we haven’t asked (unless I missed it still being too sleepy!) and you have not volunteered is – when WishList upgrades a user is their WordPress role actually being automatically updated?

MP Mr Papa
Mr Papa
Member

latter is the question I was asking re wishlist…  does wishlist change the wp role for auto upgrades.. I would think so and have not heard of any issues, but comes to mind…

on the forum rank, just wanted to make sure multiple things are not changing the memberships of folks… this would require a post to change the membership though…

JM John McIntyre
John McIntyre
Member

When Wishlist upgrades a user, their wordpress IS upgraded, BUT the simple press user is not.

YS Yellow Swordfish
Yellow Swordfish
Member

Most curious. The Simple:Press User Groups are changed on a standard WordPress action hook so that when a role is changed – WP fires an event action that Simple:Press then picks up and acts upon. No current known issues and in use by many, many users including us. So the first possibility is that for some reason that hook is not being fired or is being turned off. As far as I am aware there are no problems with WP Role Manager plugin either – unless @mr-papa knows of anything…

I do see now, however, that the question regarding forum ranks is a good one as that can also change a users group membership. So – do you have any standard rankings set up – based on number of posts?

MP Mr Papa
Mr Papa
Member

No, nothing than the other things I queried for…  We dont use the auto upgrade feature of wishlist, so have no real way of knowing if wishlist ‘properly’ changes the wp role for that or not (ie uses the wp api for the role change so a hook is fired)…  would expect they are…  there are been no other reports of similar issues and wishlist is quite popular but dont know if that feature is used by others or not…

We just released an Event Logging plugin… might be interesting to give that a try and log the wp role change hook and see if its getting fired… would be good data point…

JM John McIntyre
John McIntyre
Member

So what are my options here?

Try the event logging plugin and see what appears?

Hire a dev to custom code something?

Happy to give you admin access if you want to take a look yourself. Email me – john (at) themcmethod.com

YS Yellow Swordfish
Yellow Swordfish
Member

Steve is suggesting the Event Logging plugin simply to determine whether the action hook for WP role changes is being fired as expected. So it is worth a try as part of a process of elimination. I will need to talk to him about how that is set up…

Meanwhile there is still the outstanding question of forum ranks which while unlikely – is again, worth eliminating.

JM John McIntyre
John McIntyre
Member

Haven’t changed the default forum ranks.

Just checked. 

New member, 2 posts.

Member, 1000 posts.

Both are set to “none” for Automatic User Group membership.

So when someone joins, they get signed up under the “McMastersTrial” membership, and their rank is set to “New Member”.