Page 1 of 1

Upgrade subscriber to L1 google checkout

PostPosted: April 29th, 2011, 7:05 am
by rauli
In testing, I noticed you cannot after a checkout use an existing username and password in the registration form for a existing user that is a subscriber account (or anything else) to in effect upgrade it.

i have a client that wants people to register with manual invites for basic subscriber membership, for the simple purpose of being visible on the global map dotted with members that have a certain custom registration field then optionally allow them to them upgrade to full membership and have access to the blog and post new topics.

Is there anyway (built in) that I can have the registration form check if the username and password match in the registration form, which simply confirms the account owner then promote the account?

A simpler way is to upgrade members (rather than providing a separate button for upgrading) after a subscription has lapsed and currently we have s2member delete users because we could not work it out any other way, which may upset people if their 'existence' in the blog is sent to oblivion when instead, it simply becomes dormant and upon paying again restores all promised privileges.

Can someone please point me to the files that s2member uses that I could edit to allow for this? I tend to be pretty good at hacking things, even though I rather not do that since I cant upgrade s2member safely if I edit its code.....OR, can mu-plugins be used to over ride any .php file that s2member uses by giving it the same file name and placing in that folder?

Great plugin otherwise!

Thanks,
Rauli

Re: Upgrade subscriber to L1 google checkout

PostPosted: April 29th, 2011, 11:26 am
by Cristián Lávaque
Hi Rauli. :)

If the member is logged in, the upgrade will be effective and no new account will be created. Just show the button to logged in users only and that will solve it.

I hope that helps.

Re: Upgrade subscriber to L1 google checkout

PostPosted: April 29th, 2011, 8:37 pm
by rauli
Thanks for the reply. So, both google checkout and paypal paid successful checkouts will upgrade a logged in subscriber if using the bracketed short codes within the wordpress page?

I do have adapted checkout buttons that exists outside the blog in a joomla article, but i expect it cannot detect the user is logged in. These buttons are in a webpage with the same domain however, perhaps I can read a cookie and inject a member code using javascript into a paypal button if it needs it? My client insisted the buttons be in a joomla article.

Do the google checkout signup buttons also allow s2member to detect that a user is logged in if they use a register link after paying for checkout? I ask this because I do not see the google checkout buttons have any php code to ask about the currently logged in user.

Re: Upgrade subscriber to L1 google checkout

PostPosted: April 29th, 2011, 9:05 pm
by Cristián Lávaque
If the person is logged in when he hits the button, he won't be taken to the registration form after paying, his account will be upated instead.

About the button in the Joomla article, why not make that a link to the WordPress page/post where you can make the person log in to see the button? I don't know how to could check from Joomla the login status of the user in WordPress, not saying it's impossible, but I can't help you with that.

Re: Upgrade subscriber to L1 google checkout

PostPosted: April 30th, 2011, 5:14 am
by rauli
Yes i do not expect such details, but i imagine I could use a cookie to store the login details that the php returns to re-create it in the joomla system so that the button has that details. but i can see a solution, simply use a conditional in a page to display the button explaining they can use this button to upgrade their subscriber account and to prompt them to login immediately to display the button and subscribe then. I have noticed that if someone clicks a register link while they are logged in with an account that already has that level, they do see the registration page and can create a new user account and that threw me off believing s2member did not do what you described.

Re: Upgrade subscriber to L1 google checkout

PostPosted: May 4th, 2011, 12:33 am
by Cristián Lávaque
Jason Caldwell wrote:This has to do with s2Member's behavior during and after the checkout process only. It does not affect a User's ability to register and/or re-register when/if Open Registration is (on).

If a logged-in User and/or existing Member goes through the checkout process, s2Member will ask them to log back into their account after checkout is completed, instead of asking them to re-register for a new account. In other words, s2Member is capable of updating their existing Username, instead of asking the Customer to create an entirely new account. That being said, if Open Registration is (on), ANYONE can register and/or re-register, even existing Members can re-register, because registration is Open to the public. Of course, they would have to click on the registration link and make a conscious decision to re-register ( that would be strange I think ).

Also important to note, is that s2Member will only allow a paying Customer to register ONE time after checkout. s2Member will allow a paying Customer to register ONE time, and that Customer will be given access at the Level/Capabilities they purchased. After that, even if Open Registration is (on), they could still re-register, but they would only get a new "Free" account at Level #0, that's it.

Does this help to clarify?


I hope that helps.