Community Support Forums — WordPress® ( Users Helping Users ) — 2011-07-29T15:42:14-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14189 2011-07-29T15:42:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14189&p=29460#p29460 <![CDATA[Re: Registration Page with multiple options]]>
Use the free registration pro-form, don't require First or Last name, you will need email address though so they'll be three fields in the first form unless you don't ask for password and let WordPress send that in the welcome email. WP Admin -> s2Member -> General Options -> Custom Registration Fields/Options -> Collect First/Last Names during Registration and Allow Custom Passwords during Registration

In addition to those, create a custom field with radio buttons for the plan they'll purchase. This will add it to the registration form with no pain, and you can remove it from his account after payment. WP Admin -> s2Member -> General Options -> Custom Registration Fields/Options

Now, using the hack to autologin after registration, send the person to your payment pro-form for the plan they selected before, which will be populated with the profile fields they registered with. viewtopic.php?f=4&t=14211#p29101

Statistics: Posted by Cristián Lávaque — July 29th, 2011, 3:42 pm


]]>
2011-07-29T00:07:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14189&p=29436#p29436 <![CDATA[Re: Registration Page with multiple options]]>
Thank you..the code should work but the only thing i am missing is the form action.

Here are the steps:

on the per-signup page they enter:

email address
password

choose a membership option

Next Step

on the PayPal Pro form page

the email address, password and the membership option is populated from the previous step. all they have to do is complete the form and submit for approval.

the form action:

from step 1

<form id="s2member-pro-paypal-checkout-form" class="s2member-pro-paypal-form s2member-pro-paypal-checkout-form" method="post" action="??????????????">
box.jpg

Statistics: Posted by drbyte — July 29th, 2011, 12:07 am


]]>
2011-07-28T14:33:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14189&p=29404#p29404 <![CDATA[Re: Registration Page with multiple options]]>
Code:
if (isset($_GET['cascadeId'])) {
    switch ($_GET['cascadeId']) {
        case '8000':
            echo '[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="$4.95 USD / One Time ( for 3 day access, non-recurring, no trial )" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="example.com" ta="0" tp="0" tt="D" ra="4.95" rp="3" rt="D" rr="BN" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]';
            break;
        case '8001':
            echo '[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="$15.95 USD / Monthly ( recurring charge, for ongoing access )" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="example.com" ta="0" tp="0" tt="D" ra="15.95" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]';
            break;
        case '8002':
            echo '[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="$31.95 USD / One Time ( for 1 month access, non-recurring )" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="example.com" ta="0" tp="0" tt="D" ra="31.95" rp="1" rt="M" rr="0" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]';
            break;
    }
}
 


The problem is that WordPress' shortcode parser seems confused when there's more than one pro-form in the page, although only one is really echoed.

You can instead define the values for the shortcode and then echo just one shortcode with all the values adjusted depending on the cascadeId value.

Statistics: Posted by Cristián Lávaque — July 28th, 2011, 2:33 pm


]]>
2011-07-28T02:59:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14189&p=29389#p29389 <![CDATA[Re: Registration Page with multiple options]]>
Thank you...Yes I am trying to do more than that, well if i am allowed to off course

here are some examples:

0003.jpg
0002.jpg
0001.jpg

These examples taken form different sites...What they do to make it more appealing is a short form when it's populated it passes the info to the PayPal Pro code.

Think of it like the log in widget but this is a membership widget. I suppose

I got it to work where it passes the info i gave to the Pro code but Only if the action of the form is set like ?s2member_level_req=1 which is
Code:
action="?s2member_level_req=1"



but what I want to do is when the visitor click on one of the option below
Code:
<label><input name="cascadeId" value="8000" checked="true" type="radio" />$4.95 - 3 DAY ACCESS</label>
<br>
<label><input name="cascadeId" value="8001" type="radio" />$15.95 - 30 DAYS MEMBERSHIP/Recurring <span style="color: darkorange; font-weight: bold;">[ SAVE 33% ]</span></label>
<br>
<label><input name="cascadeId" value="8002" type="radio" />$31.95 - 30 DAYS MEMBERSHIP [Non-Recurring]</label>


It captures the value of that option and pass it the Pro form along with the other fields like username or email address

How is that? So basically how do I set the %%action%% of the form manually?

Thank you

Statistics: Posted by drbyte — July 28th, 2011, 2:59 am


]]>
2011-07-27T18:40:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14189&p=29361#p29361 <![CDATA[Re: Registration Page with multiple options]]> Thanks for the heads up on this thread.

Hi Sam.

If I understand correctly, I think you're trying to provide a list of options on your Membership Options Page, and based on the option they select, redirect to a different checkout form provided by s2Member Pro.

Normally you would do this by creating several s2Member Pro Form Shortcodes, and creating a separate Post or Page for each of them. This way you have a selection of different checkout URLs, where an s2Member Pro Form resides on each of those Posts or Pages that you created. When a customer chooses an option from your Membership Options Page, they really just need to be redirected to the proper Post or Page which holds the s2Member Pro Form Shortcode with the checkout configuration they selected.
Code:
http://example.com/checkout-form-1 ( contains a Pro Form Shortcode )
http://example.com/checkout-form-2 ( contains a Pro Form Shortcode )
http://example.com/checkout-form-3 ( contains a Pro Form Shortcode )
* Or for the more advanced site owner, you might try an approach that uses variables in your Shortcode. See: viewtopic.php?f=36&t=1604

I have a feeling though, that you're trying to do something more than this? If so, can you please fill me in with a bit more detail please? I'm just not seeing the big picture yet I guess, sorry.

Statistics: Posted by Jason Caldwell — July 27th, 2011, 6:40 pm


]]>
2011-07-23T00:15:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14189&p=28970#p28970 <![CDATA[Re: Registration Page with multiple options]]>
Well I'm almost there but having problem hooking couple of things together

here's what i'm trying to do

On the signup page I have this:

Code:
<form id="s2member-pro-paypal-checkout-form" class="s2member-pro-paypal-form s2member-pro-paypal-checkout-form" method="post" action="what goes in here?">
<div style="margin-top: 12px;" class="jn_frm_lft_btn">
<div id="s2member-pro-paypal-checkout-form-email-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-checkout-form-div s2member-pro-paypal-form-email-div s2member-pro-paypal-checkout-form-email-div">
<label for="s2member-pro-paypal-checkout-email" id="s2member-pro-paypal-checkout-form-email-label" class="s2member-pro-paypal-form-email-label s2member-pro-paypal-checkout-form-email-label">
<span>Email Address *</span><br />
<input aria-required="true" data-expected="email" type="text" maxlength="100" name="s2member_pro_paypal_checkout[email]" id="s2member-pro-paypal-checkout-email" class="s2member-pro-paypal-email s2member-pro-paypal-checkout-email" value="" tabindex="30" />
</label>
</div>
<input type="submit" id="s2member-pro-paypal-checkout-submit" class="s2member-pro-paypal-submit s2member-pro-paypal-checkout-submit" value="Submit Form" tabindex="510" />


The Code above will capture the email address and forward it to the registration form but I also have this on the signup page:


The code below i gave some values but not sure how to pass them to the original submit form
Code:

<label><input name="cascadeId" value="8000" checked="true" type="radio" />$4.95 - 3 DAY ACCESS</label>
<br>
<label><input name="cascadeId" value="8001" type="radio" />$15.95 - 30 DAYS MEMBERSHIP/Recurring <span style="color: darkorange; font-weight: bold;">[ SAVE 33% ]</span></label>
<br>
<label><input name="cascadeId" value="8002" type="radio" />$31.95 - 30 DAYS MEMBERSHIP [Non-Recurring]</label>



Now, how do I connect the first form to add what the visitor choose from the last form!!!

Now I know the action is not correct. What would be the correct setting for that

Then I am using the JS

Code:
<script type="text/javascript">
function get_radio_value()
{
for (var i=0; i < document.orderform.cascadeId.length; i++)
   {
   if (document.orderform.music[i].checked)
      {
      var rad_val = document.orderform.cascadeId[i].value;
      }
   }
}
</script>




I think i am missing the form action but I might be missing other things too

Thank you your help

Sam

Statistics: Posted by drbyte — July 23rd, 2011, 12:15 am


]]>
2011-07-21T23:57:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14189&p=28903#p28903 <![CDATA[Re: Registration Page with multiple options]]>

Statistics: Posted by Cristián Lávaque — July 21st, 2011, 11:57 pm


]]>
2011-07-21T23:40:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14189&p=28902#p28902 <![CDATA[Re: Registration Page with multiple options]]> Statistics: Posted by drbyte — July 21st, 2011, 11:40 pm


]]>
2011-07-21T23:12:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14189&p=28901#p28901 <![CDATA[Re: Registration Page with multiple options]]>
Does that answer your questions?

Statistics: Posted by Cristián Lávaque — July 21st, 2011, 11:12 pm


]]>
2011-07-21T22:45:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14189&p=28900#p28900 <![CDATA[Re: Registration Page with multiple options]]>
I did test it and it's working fine. The question came to me to as they are reading this:

"This special Page is where you will insert the PayPal® Subscription Buttons generated for you by s2Member. This Page serves as your signup page. It should detail all of the features that come with Membership to your site, and provide a PayPal® Subscription Button for each Level of access you plan to offer."

On the signup page, they are asking if they can have multiple check box option where visitors can choose and where each page holds some information about what is requested, instead of having everthing on one page.

They thought that it's a mandatory to have the PayPal button in there. The site have only one level. My only concern was that if I do not add ?s2member_level_req=1 to the end of the page requested ..the application will fail. But i suppose it does not matter if you serve only one level.

Sam

Statistics: Posted by drbyte — July 21st, 2011, 10:45 pm


]]>
2011-07-21T15:51:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14189&p=28854#p28854 <![CDATA[Re: Registration Page with multiple options]]>

Statistics: Posted by Cristián Lávaque — July 21st, 2011, 3:51 pm


]]>
2011-07-21T11:51:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14189&p=28821#p28821 <![CDATA[Registration Page with multiple options]]>
The registration page which is the default membership options page for s2m

Now inside this page we have:

Code:
<input type="radio" onclick="window.location='https://www.site.com/signup-m-3?s2member_level_req=1';" />$4.95 - 3 Day Trial
<input type="radio" onclick="window.location='https://www.site.com/signup-m-30r?s2member_level_req=1';" />$15.95 - 30 Days membership [Recurring]


Now not sure of what I did is correct. I added ?s2member_level_req=1 at the end of the url above. Is that the correct way or just leave it blank for a default level 1 option. meaning https://www.site.com/signup-m-30r

Thank you

Statistics: Posted by drbyte — July 21st, 2011, 11:51 am


]]>