Statistics: Posted by bitofgrace — January 23rd, 2012, 1:36 pm
Statistics: Posted by Raam Dev — January 23rd, 2012, 1:31 pm
Statistics: Posted by bitofgrace — January 19th, 2012, 1:27 pm
Statistics: Posted by Raam Dev — January 18th, 2012, 10:41 pm
Statistics: Posted by bitofgrace — January 15th, 2012, 1:06 pm
<?php
if(realpath(__FILE__) === realpath($_SERVER["SCRIPT_FILENAME"]))
exit("Do not access this file directly.");
/**/
add_action("init", "my_s2_prefills", 1);
function my_s2_prefills()
{
if(!isset($_POST["s2member_pro_paypal_registration"]))
{
$_POST["s2member_pro_paypal_registration"]["first_name"] = @$_GET["fname"];
$_POST["s2member_pro_paypal_registration"]["last_name"] = @$_GET["lname"];
$_POST["s2member_pro_paypal_registration"]["email"] = @$_GET["email"];
$_POST["s2member_pro_paypal_registration"]["custom_fields"]["reg_code"] = @$_GET["regcode1"];
}
}
?>
<?php
if(realpath(__FILE__) === realpath($_SERVER["SCRIPT_FILENAME"]))
exit("Do not access this file directly.");
/**/
add_action("init", "my_s2_prefills", 1);
function my_s2_prefills()
{
if(strpos($_SERVER["REQUEST_URI"], "/my-free-registration-form-slug") !== false)
if(!isset($_POST["s2member_pro_paypal_registration"]))
{
$_POST["s2member_pro_paypal_registration"]["first_name"] = @$_GET["fname"];
$_POST["s2member_pro_paypal_registration"]["last_name"] = @$_GET["lname"];
$_POST["s2member_pro_paypal_registration"]["email"] = @$_GET["email"];
$_POST["s2member_pro_paypal_registration"]["custom_fields"]["reg_code"] = @$_GET["regcode1"];
}
}
?>
Statistics: Posted by Jason Caldwell — January 15th, 2012, 11:41 am
<?php
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
exit("Do not access this file directly.");
$_POST['s2member_pro_paypal_registration']['first_name'] = $_GET['fname'];
$_POST['s2member_pro_paypal_registration']['last_name'] = $_GET['lname'];
$_POST['s2member_pro_paypal_registration']['email'] = $_GET['email'];
$_POST['s2member_pro_paypal_registration']['custom_fields']['reg_code'] = $_GET['regcode1'];
?>
Statistics: Posted by bitofgrace — January 15th, 2012, 10:17 am
Statistics: Posted by Jason Caldwell — April 16th, 2011, 5:54 am
Statistics: Posted by drbyte — April 15th, 2011, 9:54 pm
<form method="POST" action="http://www.example.com/my-checkout-page/">
<p>
<label>First Name:</label><br />
<input type="text" name="s2member_pro_paypal_checkout[first_name]" value="" />
</p>
<p>
<label>Last Name:</label><br />
<input type="text" name="s2member_pro_paypal_checkout[last_name]" value="" />
</p>
<p>
<label>EMail Address:</label><br />
<input type="text" name="s2member_pro_paypal_checkout[email]" value="" />
</p>
<p>
<label>Username:</label><br />
<input type="text" name="s2member_pro_paypal_checkout[username]" value="" />
</p>
<p>
<label>Password:</label><br />
<input type="text" name="s2member_pro_paypal_checkout[password1]" value="" />
</p>
<p>
<label>Password ( please type it again ):</label><br />
<input type="text" name="s2member_pro_paypal_checkout[password2]" value="" />
</p>
<p>
<label>My Custom Field:</label><br />
<input type="text" name="s2member_pro_paypal_checkout[custom_fields][my_custom_field_id]" value="" />
</p>
<p>
<label>Another Custom Field:</label><br />
<input type="text" name="s2member_pro_paypal_checkout[custom_fields][another_custom_field_id]" value="" />
</p>
<p>
<input type="submit" value="Continue To Checkout" />
</p>
</form>
Statistics: Posted by Jason Caldwell — April 15th, 2011, 9:34 pm
Statistics: Posted by Cristián Lávaque — April 15th, 2011, 7:55 pm
Cristián wrote:
That seems like a good idea.
It could be easily achieved if the Pro-Form prefilled fields with values in $_POST or $_GET.
$_POST["s2member_pro_paypal_checkout"]["first_name"]
$_POST["s2member_pro_paypal_checkout"]["last_name"]
$_POST["s2member_pro_paypal_checkout"]["email"]
$_POST["s2member_pro_paypal_checkout"]["username"]
$_POST["s2member_pro_paypal_checkout"]["password1"]
$_POST["s2member_pro_paypal_checkout"]["password2"]
$_POST["s2member_pro_paypal_checkout"]["custom_fields"]["my_custom_field_id"]
$_POST["s2member_pro_paypal_checkout"]["custom_fields"]["another_custom_field_id"]
$_POST["s2member_pro_paypal_sp_checkout"]["first_name"]
$_POST["s2member_pro_paypal_sp_checkout"]["last_name"]
$_POST["s2member_pro_paypal_sp_checkout"]["email"]
$_POST["s2member_pro_paypal_registration"]["first_name"]
$_POST["s2member_pro_paypal_registration"]["last_name"]
$_POST["s2member_pro_paypal_registration"]["email"]
$_POST["s2member_pro_paypal_registration"]["username"]
$_POST["s2member_pro_paypal_registration"]["password1"]
$_POST["s2member_pro_paypal_registration"]["password2"]
$_POST["s2member_pro_paypal_registration"]["custom_fields"]["my_custom_field_id"]
$_POST["s2member_pro_paypal_registration"]["custom_fields"]["another_custom_field_id"]
Statistics: Posted by Jason Caldwell — April 15th, 2011, 5:24 pm
codeshed wrote:
2)Pro Login Widget via PHP Tag We are using the s2Member Pro Login Widget but there seems to be some issues. When we submit the form and it results in validation errors, the form submits to the "Stand Alone (Default Wordpress login page) . How do we ensure that validation of this form stays on the page in which we have the widget placed ?
codeshed wrote:
3) How do we create the Forget Password Form similar to the behaviour with the Pro Login Widget via PHP meaning placing it within a page template and making sure we are not redirected out to the stand alone default form.
Statistics: Posted by Jason Caldwell — April 15th, 2011, 5:12 pm
Statistics: Posted by Cristián Lávaque — April 15th, 2011, 1:44 am
Statistics: Posted by Cristián Lávaque — April 15th, 2011, 1:40 am
Statistics: Posted by codeshed — April 14th, 2011, 12:21 pm
Statistics: Posted by Cristián Lávaque — April 14th, 2011, 12:21 am
Statistics: Posted by drbyte — April 13th, 2011, 2:27 pm
Statistics: Posted by Jason Caldwell — April 12th, 2011, 9:46 pm
Statistics: Posted by drbyte — April 12th, 2011, 12:30 pm
DrByte wrote:
How do I capture and complete those variables to the paypal-checkout-form.html page
Statistics: Posted by Jason Caldwell — April 11th, 2011, 3:13 am
<?php echo do_shortcode('[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="3 Days free / then $7.99 USD / Monthly ( recurring charge, for ongoing access )" ps="paypal" cc="USD" ns="1" custom="www.site.com" ta="0" tp="3" tt="D" ra="7.99" rp="1" rt="M" rr="1" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" template="paypal-registration-form.html" /]'); ?>
Statistics: Posted by drbyte — April 10th, 2011, 10:10 pm