PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

CCAP - Does Purchase Append or Change User CCAP?

s2Member Plugin. A Membership plugin for WordPress®.

CCAP - Does Purchase Append or Change User CCAP?

Postby Liz Ness » February 17th, 2011, 2:09 pm

I'd like to sell different content (and test for the capability -- so that I can provide links to the member for the content they've purchased). And, I'd like to facilitate this through the Custom Capabilities option of s2Member. However, if my user buys one capability (x) and then another (y), does the additional cap get appended to the user's overall caps. OR, does the new purchase overwrite the old and cause my user to lose the first one.

Scenario:
User buys x capability = lifetime access to videos.
Later, user buys y capability = lifetime access to music.

NOW, does user have access to both x and y (videos and music), or just access to y (music).

Thanks so much for the clarification!

=) Liz Ness
Last edited by Liz Ness on February 17th, 2011, 3:25 pm, edited 3 times in total.
User avatar
Liz Ness
Registered User
Registered User
 
Posts: 9
Joined: August 31, 2010

Re: CCAP - Does Purchase Append or Change User CCAP?

Postby Liz Ness » February 17th, 2011, 3:19 pm

Okay. Just did some testing and thought I'd share with others -- in case, others were wondering about this, too.

Purchasing a new capability overwrites existing ones. In other words, the capability is CHANGED not appended. So, my user would lose access to videos (x) but gain access to music (y).
User avatar
Liz Ness
Registered User
Registered User
 
Posts: 9
Joined: August 31, 2010

Re: CCAP - Does Purchase Append or Change User CCAP?

Postby mweichert » May 10th, 2011, 4:54 pm

FYI, if you name your CCAP "+music" instead of "music", you'll append the CCAP instead of overriding them.
User avatar
mweichert
Registered User
Registered User
 
Posts: 10
Joined: January 31, 2011

Re: CCAP - Does Purchase Append or Change User CCAP?

Postby Cristián Lávaque » May 10th, 2011, 5:07 pm

mweichert wrote:FYI, if you name your CCAP "+music" instead of "music", you'll append the CCAP instead of overriding them.


That is correct. Also, if you sell another thing without ccap, entering "+" (just the plus sign) to the ccap attribute will prevent them from being deleted too.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron