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.

About: Skylar Webber

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Happy Customer Here… Only One Request.

By:  Skylar Webber in: Community Forum

voices: 2
replies: 1

4 years, 5 months ago  Raam Dev

Pass Aweber Data To Thank You Registration Pg

By:  Skylar Webber in: Community Forum

voices: 2
replies: 5

4 years, 6 months ago  Cristián Lávaque

Viewing 2 topics - 1 through 2 (of 2 total)

Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Happy Customer Here… Only One Request.

By:  Skylar Webber in: Community Forum

voices: 2
replies: 1

4 years, 5 months ago  Raam Dev

Pass Aweber Data To Thank You Registration Pg

By:  Skylar Webber in: Community Forum

voices: 2
replies: 5

4 years, 6 months ago  Cristián Lávaque

Viewing 2 topics - 1 through 2 (of 2 total)

My Latest Replies (From Various Topics)

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Saturday Jun 30th, 2012 at 11:54 am #17966

ISSUE RESOLVED

I was able to edit /s2member-pro/includes/templates/forms/paypal-registration-form.php as follows:

input type="text" aria-required="true" maxlength="100" autocomplete="off"
 name="s2member_pro_paypal_registration[first_name]" id="s2member-pro-paypal-registration-first-name"
 class="s2member-pro-paypal-first-names2member-pro-paypal-registration-first-name" 
 value="%%first_name_value%%" tabindex="10" /

I used the following tag to autopopulate the appropriate field by changing the value:

value="<?php echo $_GET['URL_Variable_That_You_Need'] ?>"

This pulls the passed Aweber data from the URL and places it in the name field. In order to autopopulate the other default fields, simply make your way down the /s2member-pro/includes/templates/forms/paypal-registration-form.php, and replace each field’s value with the aforementioned code snippet. (obviously you have to change the name of the variable to the variable that you are pulling out of the URL)

Just thought I would share this here in the knowledge base in case it ever comes up again.

Thanks,

Skylar

Posted: Saturday Jun 30th, 2012 at 10:09 am #17959

I think I can make this super easy… is there any way that I can modify this code on the /s2member-pro/includes/templates/forms/paypal-registration-form.php form:

input type="text" aria-required="true" maxlength="100" autocomplete="off"
 name="s2member_pro_paypal_registration[first_name]" id="s2member-pro-paypal-registration-first-name"
 class="s2member-pro-paypal-first-names2member-pro-paypal-registration-first-name" 
 value="%%first_name_value%%" tabindex="10" /

so that the:

value= “Get” (Aweber Variable from previous page)

or is this the wrong place to edit?

Hope this makes sense.

Thanks

Skylar

Posted: Saturday Jun 30th, 2012 at 9:35 am #17954

Christian,

Thank you so much for your response. Unfortunately that particular tutorial is for setting a default value in a “custom” field using options from a drop down menu, and the link to the video tutorial that is said to explain it all is not valid.

The fields that I am trying to populate are not “custom” fields. I need to populate the default “First Name”, “Last Name” and “Email” fields on the free registration form, using the information that is being passed from an Aweber form on the prior page.

I am quite sure that it can be done, however, I simply lack the coding knowledge to know exactly what form in the loop to add the “Get” Variable code to, and I am unsure of the proper syntax to use as well.

I have tried editing the /s2member-pro/includes/templates/forms/paypal-registration-form.php, but to no avail. Until now I have had a very easy time making the proper modifications for my project, and I have thoroughly enjoyed the S2member plugin. This is the last tweak that I need to make before launch, and I would greatly appreciate any other insight that you or Jason could shed on the topic for me, as my main reason for purchase was because of the awesome customer support.

Thank you in advance, without your answers to the many topics in this forum, I would not have been able to make this site work.

Skylar

Viewing 3 replies - 1 through 3 (of 3 total)

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.