• Resolved magnus1

    (@magnus1)


    Hi,

    I’m setting up a membership site that will give subscriber access to all my courses as I release them.

    However, I also want to sell each course within that membership “individually”.

    How do I give people access to each individual course without them getting access to everything?… i.e. if I have 10 courses, I need them to have access only to the one they paid for (nothing else) unless they upgrade to the full membership.

    If they have a membership 3 level, won’t they be able to access 1 & 2 as well?

    I hope this makes sense!

    Cheers,
    Michelle

    https://wordpress.org/plugins/s2member/

Viewing 15 replies - 1 through 15 (of 20 total)
  • Right, levels give incremental access, so a level 3 member will have access to content at level 3, but also 2, 1, and 0.

    That can be changed editing the level roles, but it wouldn’t help for the setup you describe.

    I recommend that you use custom capabilities for content protection instead. See: WP Admin -> s2Member -> Scripting -> Custom Capabilities

    I hope that helps! 🙂

    Cristián

    Thread Starter magnus1

    (@magnus1)

    Hi there,

    Thanks. I haven’t a clue how to set something like this up! Is there a tutorial or anything that will show me step by step? Thanks! 🙂

    Michelle

    Thread Starter magnus1

    (@magnus1)

    Hmmm… still not 100% sure, but slowly figuring it out.

    What code would I have to enter (in the custom capabilities) to enable a member buying level one to have access to a single page only? Thanks!

    You could either protect the page with the custom capability (ccap) for it, or use a conditional that checks for the ccap.

    To protect access to the page with the ccap, you go to the page’s editor, and in the s2Member box in the right sidebar, enter the ccap.

    To protect content using the ccap with a conditional, see the documentation here: WP Admin -> s2Member -> Scripting -> Conditionals

    Does that help? 🙂

    Cristián

    Thread Starter magnus1

    (@magnus1)

    Haha…. ummmm…

    So if I have a Page called “Test” (page id number 5) and I only want certain members (who paid for this product only) to have access to this Page only – nothing else in this Membership Level – what would the code look like?

    They’ll only see the rest of the content on that Level if they upgrade their Membership.

    Sorry… I’m NOT good at this!

    @cristian,

    Nice to have you back!

    @magnus1,

    Although Cristian’s advice would also be given by other users of s2Member (notably cassel), I actually think it makes things more complicated and less flexible.

    I would stick to using levels, and I think you’ll find it less confusing because you won’t need to create ccaps and your own conditionals, and instead you will be able to use default s2Member functionality.

    The only things you’ll then need to do are:

    1. Install a user management plugin, like Capability Manager Enhanced, to remove (say) a level 3 user’s ability to access levels 1 and 2; and

    2. If, as seems likely, you’ll need more than four levels, you’ll need to upgrade to the Pro version, which allows for an unlimited number of levels.

    Thread Starter magnus1

    (@magnus1)

    Cheers mate! Will give that a go. 🙂

    @kts915

    more complicated and less flexible. I would stick to using levels

    But they wouldn’t do what she needs. She wants to be able to sell the courses separately, and a member may purchase more than one, in any particular combination.

    A WP user can only have one level (because they’re WP roles), but can have any number of capabilities.

    Nice to have you back!

    Thank you! So nice to see you again. 😀

    I started a new site for the s2 community, I’ll be there more than here, and would be very happy to have you be a part of it. 🙂

    http://s2member.net/about

    @michelle

    what would the code look like? Sorry… I’m NOT good at this!

    Don’t worry, you’ll get it. I can help you with the code you need, but can I ask you to start a topic for it here? http://s2member.net/forum

    I’ll give you code examples you could copy-paste and customize on your pages.

    Looking forward to your update. 🙂

    Cristián

    @cristian, @magnus1,

    I started a new site for the s2 community, I’ll be there more than here, and would be very happy to have you be a part of it. 🙂

    Thank you! Yes, I’ll be joining soon!

    But they wouldn’t do what she needs. She wants to be able to sell the courses separately, and a member may purchase more than one, in any particular combination.

    But you can sell courses as levels easily both individually and by bundles (e.g. by offering levels 1 and 2 together as level 3). The only thing is that someone adding a new course (and therefore upgrading to a higher level) needs to do so after logging in by using an upgrade form.

    There are two major advantages to using levels over ccaps that seem to me to often get overlooked (apart from the fact that you can then use the default functionality rather than having to create your own ccaps).

    One is that ccaps can’t be used to protect content in so flexible a manner as levels (e.g. protecting by URI is not possible with ccaps).

    Secondly — and this one is vital for my own usage of s2Member — it is not possible to add another capability (e.g. one generated by another plugin) to a ccap. You must add instead capabilities to a user role, which is precisely what s2Member levels are. So anyone wanting to make use of other capabilities really must use levels.

    It’s not about choosing between levels or ccaps, she can’t use levels for what she described, so ccaps are her only choice.

    Yes, URI restriction is not possible with ccaps, but fortunately she doesn’t need that features for the described setup.

    Let’s say she has products A, B, C and D (she said 10, but 4 are enough for the example).

    With levels you’d have one of two setups:

    1) You can have one level for each product, which would normally give incremental access, but you can edit the level roles to remove access to lower ones. But this has the problem of only being able to have access a single course as a member, because it’ll be either one level or the other, not possible to have several levels at the same time.

    2) You can have a level for each possible combination of courses, which will cause her to create a lot of levels with customized access to match the package bought: A, B, C, D, AB, AC, AD, BC, BD, CD, ABC, ABD, ACD, ABCD (Sorry if I missed one). That’s a lot harder to manage, and will make it harder to change access if a member buys a new course. And she’ll need s2Member Pro to get more levels, too.

    With custom capabilities she can have ccap A, ccap B, ccap C, and ccap D, and the level role remains the same. She can sell those individually, which is what she described wanting to be able to do. If a member has courses A and D, and also wants C, he can just buy it and it gets added to his account.

    I hope that makes sense. 🙂

    Cristián

    Cristian,

    In principle, you are right about the number of levels for courses. In practice, though, it would be poor marketing to sell them like that because too much choice is confusing for would-be purchasers. And that applies whether you use levels or ccaps.

    Better marketing involves offering only specific combinations, perhaps because they are somehow related, or perhaps because you can then offer a discount for a package.

    And, as I said before, what happens if you want to add a ccap from another plugin to some courses but not others? You need levels for that.

    too much choice is confusing for would-be purchasers

    But I wasn’t telling how to sell her courses, I was answering how she can do what she was asking. And it’s not a bad model for every site, it depends on how you do it.

    I know internet marketers that have tens of products on the same site and are very successful. There are sites that sell dozens of different courses and do splendidly.

    if you want to add a ccap from another plugin to some courses but not others?

    Could you explain a specific scenario where she would want to do this? And although you can’t add a cap to another cap, the user still has a role and you can add the new cap to it.

    Could you explain a specific scenario where she would want to do this?

    Sure: it could be giving community access, forum access, or the ability to submit content from the front-end. I am currently utilizing all these capabilities (and the last one in two different ways for two different purposes), so that different users/levels have different capabilities.

    The reason I am emphasizing this point is that, early on in my own use of s2Member, someone suggested using ccaps. I soon realized that this wasn’t scaleable, though, if I wanted to be able to add other plugins’ ccaps. Thankfully, I hadn’t got too far and was able to change back to levels. But, as I continue to add such capabilities from other plugins, I’m just so relieved I noticed the problem early on.

    Thanks for the example.

    And why would that not be possible to do when using ccaps for content protection? The user still has a WP role that you can add/remove capabilities to with your customization.

Viewing 15 replies - 1 through 15 (of 20 total)

The topic ‘Problem with membership levels’ is closed to new replies.