latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Use S2Member as pay-per-purchase of e-goods?

Home Forums Community Forum Use S2Member as pay-per-purchase of e-goods?

This topic contains 6 replies, has 3 voices. Last updated by  Jason (Lead Developer) 4 years, 10 months ago.

Topic Author Topic
Posted: Monday Feb 20th, 2012 at 10:50 pm #5796

The goal:

1. User arrives at site, registers as a subscriber, logs in.
2. The user can now post from the front end (I have this set up with my own custom code).
3. The user says, “Hey, I want to make PREMIUM posts now”.
4. The user designates which of his posts he wants to promote to premium, I save the postID in a cookie, and he gets routed to paypal to join as an S2MemberLevel_1.
5. Now he’s back at the site. He has to log in again since he’s been promoted now.
6. Now I can use that cookie I saved earlier to confirm he’s about to add premium content to the post for which he paid.
7. Once he saves the post, I do a database update to strip him back down to normal subscriber level. Now he would have to pay again in order to create another premium post.

Step 5 bothers me. Any way to configure things so he doesn’t have to log in again?

But overall, is this doable? It seems like a lot of trouble, but I was having a lot of problems with my IPN script, so that’s why I picked up S2Member.

List Of Topic Replies

Viewing 6 replies - 1 through 6 (of 6 total)
Author Replies
Author Replies
Posted: Tuesday Feb 21st, 2012 at 12:21 am #5825
Staff Member

Hi Scott. Thanks for your inquiry.

What you’ve described certainly sounds doable, using s2Member as a framework on which to build this type of site. However, we do NOT currently support Administrative Users within WordPress. s2Member is designed for end-users of a site, and not for Users/Members that actually gain access to your Dashboard in some way.

Again, I’m certain it can be accomplished (i.e. we’ve had several site owners do this with s2Member), we just aren’t supporting this officially yet. Any custom code required for this is not covered by our Support Policy.

Posted: Tuesday Feb 21st, 2012 at 1:31 am #5831

I totally get that. I’ve got scripts set up to allow my s2members to post.

I guess the real problem I have with it is that they have to log in again after they’re promoted from subscriber to S2member, right? Isn’t that part of the normal sequence of events for s2member? Does it have to be?

Posted: Thursday Feb 23rd, 2012 at 3:37 am #6084
Staff Member

No, it doesn’t have to be at all. In fact, all of s2Member’s routines, including all of the core WordPress routines are designed so this is absolutely NOT a requirement. The primary reason that s2Member introduces this, is simply for the benefit of the customer. If the customer logs back in, they go back into the Login Welcome Page, where they normally will see the status of their account change, or that they now have access to something more.

Could they have done this without logging back in? Absolutely!

Posted: Saturday Feb 25th, 2012 at 1:40 am #6393

Scott, if the user gets logged out for some reason and has to log back in, you may want to check that you’re not having a www issue in one of your links in the site, or the return URL from PayPal or something. Knowledge Base » Logged in but am considered logged out

Let me know if that helps.

Posted: Saturday Feb 25th, 2012 at 9:40 am #6405

Thanks very much for the responses guys. I’m re-reading the question as I posted it and I see that I asked it in a confusing way.

Jason,

Once the user is logged out after being promoted, I totally undertstand why he would be prompted to log back in. My complaint is that I don’t want him to be logged out when he gets promoted. Is THAT possible?

Christian,

I’ll look through that link you posted, thank you. But isn’t part of the way S2 Member is designed, that the user is logged out upon being promoted?

Posted: Monday Feb 27th, 2012 at 10:25 pm #6626
Staff Member

Hi Scott. Sorry if I misunderstood.

My complaint is that I don’t want him to be logged out when he gets promoted. Is THAT possible?

No, s2Member doesn’t log them out during an upgrade. If this is happening on your installation, you might check what Cristian mentioned. It could be a www vs. non-www issue, as discussed here in this KB article:
Knowledge Base » Don't mix www and without

Viewing 6 replies - 1 through 6 (of 6 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.