Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-23T13:36:39-05:00 http://www.primothemes.com/forums/feed.php?f=36&t=3029 2012-01-23T13:36:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=61301#p61301 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
have already sent out the 10,000 invites unfortunately, but that wont likely be the last time i need to do it.

Thank you.

Statistics: Posted by bitofgrace — January 23rd, 2012, 1:36 pm


]]>
2012-01-23T13:31:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=61300#p61300 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]> How to Use Merge Tags.

Your example above looks correct if MailChimp's merge tags would replace [fname] with the First Name of the person (I think you have that part wrong... if I remember correctly, MailChimp uses the format of *|FNAME|*).

Statistics: Posted by Raam Dev — January 23rd, 2012, 1:31 pm


]]>
2012-01-19T13:27:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=60987#p60987 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
The emailer is merged with the fields:
lname
fname
regcode
regcode2
eot
email

the link is to the page where the form is embedded: domain.com/stringcharachtersasaname/

so, would i make the link something like this instead:
domain.com/stringcharachtersasaname/?fname=[fname]&lname=[lname]&email=[email]&reg_code=[regcode]

??
i have no idea how to call the =[] properly
i'm working from Mailchimp list.

Statistics: Posted by bitofgrace — January 19th, 2012, 1:27 pm


]]>
2012-01-18T22:41:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=60940#p60940 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
The code Jason supplied uses query variables (e.g., &fname=Raam) from the URL and assigns them to the Pro Form field (@$_GET["fname"]).

So, you'll need to be calling the Pro Form URL with something like http://example.com/pro-form-order-page/?fname=Raam&lname=Dev&email=raam@example.com&reg_code=ABC123.

I was asking for the URL you're using so that I can check to make sure the query variables are properly configured in the URL. If they're not properly configured, the Pro Form fields won't be filled in.

Statistics: Posted by Raam Dev — January 18th, 2012, 10:41 pm


]]>
2012-01-18T14:13:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=60910#p60910 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]> Statistics: Posted by bitofgrace — January 18th, 2012, 2:13 pm


]]>
2012-01-18T14:02:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=60906#p60906 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]> Statistics: Posted by Raam Dev — January 18th, 2012, 2:02 pm


]]>
2012-01-15T13:06:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=60587#p60587 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]> the email link gets through to the correct page.. but nothing pre-filled.

i'm missing something but have no idea what. : /

Statistics: Posted by bitofgrace — January 15th, 2012, 1:06 pm


]]>
2012-01-15T11:41:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=60576#p60576 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]> Thanks for your inquiry.
You might try something like this with your code.

Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
( these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins )
Code:
<?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"];
            }
    }
?>
s2-hacks.zip
It would also be a good idea to add a conditional page check, so this code only runs on the page where your s2Member Pro Form is at. So for instance, you might do something like this.
Code:
<?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"];
                    }
    }
?>
See also: http://codex.wordpress.org/Function_Reference/is_page

Statistics: Posted by Jason Caldwell — January 15th, 2012, 11:41 am


]]>
2012-01-15T10:17:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=60571#p60571 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
Ultimately i wanted to validate that code against a list on the server- but have not found a way to do that.
So - i could use a lil help figuring out how to prefill the reg form with the code from the user's linked email.

i may have added the the chunk to the reg form php improperly - because it rendered no change when clicked to that page from email. The email does have matching field names (fname, lname, email, reg_code on s2 is regcode in the email)

Am i missing something to call at the top?:
Code:
<?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


]]>
2011-04-16T05:54:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=12743#p12743 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]> Yes, please report back if you can.
That would be great!

Statistics: Posted by Jason Caldwell — April 16th, 2011, 5:54 am


]]>
2011-04-15T21:54:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=12727#p12727 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
I tried for few hours last night to get the registration info to pass to the credit card form but I kept getting error on the registration page where it kept asking me for the first name....I will try your suggestion later on tonight..thank you

Sam

Statistics: Posted by drbyte — April 15th, 2011, 9:54 pm


]]>
2011-04-15T21:34:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=12537#p12537 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]> Your own custom form leading up to checkout, might look like this.
Code:
<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


]]>
2011-04-15T19:55:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=11821#p11821 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
Jason Caldwell wrote:
Yes, that's a good point. It's not possible with $_GET variables ( yet ), but it is possible to do this with $_POST variables. You can pre-fill form fields for a checkout form like this.


So you'd have a form to fill out some of those fields first and submit via POST to the full registration form, which could have the pre-filled fields hidden with CSS. Is that the way?

Statistics: Posted by Cristián Lávaque — April 15th, 2011, 7:55 pm


]]>
2011-04-15T17:24:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=11814#p11814 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
DrByte wrote:
Think of it like your pro login widget but instead, it's a registration widget that includes the first part of the form (first, last, ...) and not the credit card part which follows when then submit

The reason behind this is to have the registration form present all the time to none members. the chances is that visitor will see it is high and increase the chances to buy the membership.

Great idea. I'll see what we can do about this.
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.

Yes, that's a good point. It's not possible with $_GET variables ( yet ), but it is possible to do this with $_POST variables. You can pre-fill form fields for a checkout form like this.
Code:
$_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"] 

On Pro Forms for Specific Post/Page Access, use these:
Code:
$_POST["s2member_pro_paypal_sp_checkout"]["first_name"]
$_POST["s2member_pro_paypal_sp_checkout"]["last_name"]
$_POST["s2member_pro_paypal_sp_checkout"]["email"] 

On Free Registration Forms, you can use these:
Code:
$_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


]]>
2011-04-15T17:12:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=11813#p11813 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
codeshed wrote:
1)Registration Form (paypal-checkout-form.html) After submitting and paying this form we get redirected back from the PayPal gateway to paypal-checkout-form.html with a message at the top saying "Thanks for registering......" with a blank registration form below. How do we sent the user to a different feedback page without the registration form below? Toggle on 2MEMBER_CURRENT_USER_SUBSCR_GATEWAY
doesn't seem to work, as it does not return any value.

As Cristián pointed out, you can use the success="" Attribute in your Pro Form Shortcode. This allows you to use a custom redirection URL whenever a successful transaction is completed on your site. You can even receive data from the transaction if you like. This is documented in your Dashboard, under: s2Member -> PayPal Pro Forms -> Custom Success Return URLs.
This also works with Authorize.Net integration.

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 ?

Yes, that is the intended functionality. s2Member integrates with WordPress, and this is how WordPress deals with login validation errors. I see your dilemma though. Here are some ideas for you.

1. Easiest.
Use s2Member's Login/Registration Design panel to customize the appearance of your Login/Registration system for WordPress. This is found in your Dashboard, under:
s2Member -> General Options -> Login/Registration Design.

2. Requires custom coding.
You can build your own Login Widget and form processing routine, with the help of this WordPress framework function. See: http://codex.wordpress.org/Function_Reference/wp_signon

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.

Same the above. You can either use s2Member to customize the appearance of your Login/Registration system, which includes the Lost Password functionality, or you can build a custom form of your own. This WordPress framework function might be of some assistance to you.
http://codex.wordpress.org/Function_Ref ... et_user_by

When building custom Login forms, I recommend using your /wp-login.php as a reference.
http://core.svn.wordpress.org/trunk/wp-login.php

Statistics: Posted by Jason Caldwell — April 15th, 2011, 5:12 pm


]]>
2011-04-15T01:44:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=10753#p10753 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
codeshed wrote:
1)Registration Form (paypal-checkout-form.html) After submitting and paying this form we get redirected back from the PayPal gateway to paypal-checkout-form.html with a message at the top saying "Thanks for registering......" with a blank registration form below. How do we sent the user to a different feedback page without the registration form below? Toggle on 2MEMBER_CURRENT_USER_SUBSCR_GATEWAY
doesn't seem to work, as it does not return any value.


With PayPal Pro-Forms you can add to your shortcode an attribute that specifies what page you want the person to be taken to after payment. WP Admin -> s2Member -> PayPal Pro-Forms -> Custom Return URLs On Success


The other two you'll need to custom code, I guess. Doesn't customizing the look of the page help? You can do quite a bit from WP Admin -> s2Member -> General Options -> Login/Registration Design.

Statistics: Posted by Cristián Lávaque — April 15th, 2011, 1:44 am


]]>
2011-04-15T01:40:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=10752#p10752 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
codeshed wrote:
Using the s2Member Pro forms template but not PayPal Pro, we would like to have radio button fields for different payment option types. IE Monthly Recurring or Yearly. How do we pass the option variable chosen on the form to the PayPal Gateway?.


You could generate the form for both options and then look at what input fields are different between them. You'd need your developer to use AJAX to submit one or the other set of input fields depending on the choice made by the buyer.

Statistics: Posted by Cristián Lávaque — April 15th, 2011, 1:40 am


]]>
2011-04-14T16:13:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=10736#p10736 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]> Statistics: Posted by codeshed — April 14th, 2011, 4:13 pm


]]>
2011-04-14T12:21:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=10733#p10733 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
1)Registration Form (paypal-checkout-form.html) After submitting and paying this form we get redirected back from the PayPal gateway to paypal-checkout-form.html with a message at the top saying "Thanks for registering......" with a blank registration form below. How do we sent the user to a different feedback page without the registration form below? Toggle on 2MEMBER_CURRENT_USER_SUBSCR_GATEWAY
doesn't seem to work, as it does not return any value.

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 ?

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.

In summary we want to maintain all of the forms within the theme framework. This seems to be a challenge.

Statistics: Posted by codeshed — April 14th, 2011, 12:21 pm


]]>
2011-04-14T00:21:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=10280#p10280 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
It could be easily achieved if the Pro-Form prefilled fields with values in $_POST or $_GET.

Statistics: Posted by Cristián Lávaque — April 14th, 2011, 12:21 am


]]>
2011-04-13T14:27:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=9686#p9686 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
Well here what I have in mind:

A visitor browse the site..find a products he/she likes... that page/post includes the registration form (first, last, email, and password) and does not include the payment portion as of yet.

They fill their information then click submit. once submitted, it takes them to another page where they can choose between paying with paypal or a credit card.

Think of it like your pro login widget but instead, it's a registration widget that includes the first part of the form (first, last, ...) and not the credit card part which follows when then submit

The reason behind this is to have the registration form present all the time to none members. the chances is that visitor will see it is high and increase the chances to buy the membership.

Here is an example ;p

Sam

Statistics: Posted by drbyte — April 13th, 2011, 2:27 pm


]]>
2011-04-12T21:46:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=9634#p9634 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]> Thanks for the follow-up.
If I understand you correctly, s2Member Pro already deals with this. If the User is currently logged-in whenever they reach the payment form, the basic profile details are already filled in, and any Custom Registration Fields are hidden, because s2Member assumes you've already collected those during Registration. * Please let me know if I've missed something.

Statistics: Posted by Jason Caldwell — April 12th, 2011, 9:46 pm


]]>
2011-04-12T12:30:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=9579#p9579 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>

the idea is to have the registration code in every single.php code..this way it's facing the visitor, not the member, at all times...But without the credit card portion. Like Netflix...if you look at the right side, they have the user registration info without the payments ....which comes after you register.

So we have the

paypal-registration-form
then
paypal-checkout-form

can we have the variables in the first to continue to the second without breaking the code?

Thank you

Statistics: Posted by drbyte — April 12th, 2011, 12:30 pm


]]>
2011-04-11T03:13:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=9456#p9456 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]> Hi Sam. Thanks for the great suggestions.

Regarding this question:
DrByte wrote:
How do I capture and complete those variables to the paypal-checkout-form.html page

Can you please clarify just a bit? I'm not sure exactly what you mean.

Statistics: Posted by Jason Caldwell — April 11th, 2011, 3:13 am


]]>
2011-04-10T22:10:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3029&p=9443#p9443 <![CDATA[Re: Add the s2Member Registration/Login Form to Custom Desig]]>
Been working with the Pro version and I am stuck at this:



Code:

   <?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" /]'); ?>



How do I capture and complete those variables to the paypal-checkout-form.html page

Thank you


Sam

Statistics: Posted by drbyte — April 10th, 2011, 10:10 pm


]]>