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.

Custom Capabilities not working

Home Forums Community Forum Custom Capabilities not working

This topic contains 5 replies, has 2 voices. Last updated by  Eduan 3 years, 7 months ago.

Topic Author Topic
Posted: Thursday May 30th, 2013 at 3:02 pm #50961

Hello

S2Member is not adding the Custom Capabilities to the user that submits the payment.

I am using the plain code with some additions/changes. In this example the capability they should get is:

custom' . $thetgame . $Page_ID . '

So if $thetgame was ‘hello’ and $Page_ID was ’10’ the capability would be:

customhello10

Form code:

$thecost = "20";
$thetgame = "hello";

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
 			
 <span>
 
 <!-- Instant Payment Notification &amp; Return Page Details -->
 
 
 
 
 <!-- Configures Basic Checkout Fields -->
 
 
 
 
 
 
 
 
 
 
 &lt;input type=&quot;hidden&quot; name=&quot;invoice&quot; value=&quot;" /&gt;
 &lt;input type=&quot;hidden&quot; name=&quot;on0&quot; value=&quot;" /&gt;
 &lt;input type=&quot;hidden&quot; name=&quot;os0&quot; value=&quot;" /&gt;
 &lt;input type=&quot;hidden&quot; name=&quot;on1&quot; value=&quot;" /&gt;
 &lt;input type=&quot;hidden&quot; name=&quot;os1&quot; value=&quot;" /&gt;
 <!-- Controls Modify Behavior At PayPal® Checkout -->
 
 <!-- Customizes Prices, Payments &amp; Billing Cycle -->
 
 &lt;!----&gt;
 &lt;!----&gt;
 &lt;!----&gt;
 &lt;!----&gt;
 &lt;!----&gt;
 &lt;!----&gt;
 &lt;!----&gt;
 &lt;!----&gt;
 &lt;!----&gt;
 <!-- Displays The PayPal® Image Button --></span>
</form>

There is more to this than above, I have changed it a little for this question.

When you click the paypal button it shows the item number as 1:customhello10 correctly.

If someone could help that would be great.

Thanks

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Sunday Jun 2nd, 2013 at 11:34 am #51175
Eduan
Username: Eduan
Moderator

I’m afraid I don’t understand what you’re trying to accomplish.

Are you trying to make a button that only gives custom capabilities? Or a button that gives custom capabilities along with a level?

– Eduan

Posted: Sunday Jun 2nd, 2013 at 12:05 pm #51179

@Eduan

I am trying to make a button that only gives custom capabilities. The payments etc go through fine but the user doesn’t get the capabilities entered.

Posted: Monday Jun 3rd, 2013 at 9:09 pm #51254
Eduan
Username: Eduan
Moderator

Ah I see.

Well, I want to make clear, you can only offer custom capabilities by having the user pay for level 1.

If you have the pro version you can offer custom capabilities during free registration, and you can even offer ccaps without having to modify the user’s level.

But without the pro version every time you want to give custom capabilities you gotta modify the user’s level as well. :/

– Eduan

Posted: Tuesday Jun 4th, 2013 at 5:41 am #51305

@Eduan

Ok thanks, it doesnt make sense as on the PayPal button generator there is an option to create a button for just custom ccaps but nevermind.

Could you show me how to make it level them up as well as the ccaps to make this work?

Thanks

Elliot

Posted: Friday Jun 7th, 2013 at 11:17 am #51614
Eduan
Username: Eduan
Moderator

Hello Elliot,

Yeah I see what you mean, however that’s a pro version feature. :)

Check under Dashboard -› s2Member® -› PayPal® Buttons -› Subscr. Modification Buttons to generate modification buttons, this is if you are offering PayPal subscriptions.

If you’re using buy-now buttons just offer the user a higher level’s button, a normal one. :)

You would put the ccaps that you want to offer in the ccaps attribute as usual. :)

– Eduan

Viewing 5 replies - 1 through 5 (of 5 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.