No, that was not the idea, the idea is to First subscribe to my list, and then become a free member, if they are so inclined.
I did figure it out anyway, so I will post for the benefit of anybody that comes across this dilemma.
Short answer to my question above was “yes”, as I figured out from this forum response from Cristián. Nevertheless, there was a problem: Aweber sends back in the query string the variable name and WP does not like it, it yields a 404. So here are the steps I took to solve this problem:
- In theme functions, I added:
add_action('init','change_querystring_name');
function change_querystring_name() {
if(isset($_GET['name'])){
$_GET['aname'] = $_GET['name'];
unset($_GET['name']);
}
}
That take care of the 404 when you post back from Aweber, plus it allows you to use ‘aname’ variable in the code.
- As suggested above, open a copy of wp-content/pluging/s2member-pro/includes/templates/forms/paypal-registration-form.php
- Modify to your liking, including, for example
<input name="[email]" [...] value=" [php echo $_GET['email']; ] ">
- Save on your theme folder and call from shortcode as per my original question.
Hope this helps someone.
-
This reply was modified 4 years, 10 months ago by
Santi Azpilicueta.
-
This reply was modified 4 years, 10 months ago by
Santi Azpilicueta.
-
This reply was modified 4 years, 10 months ago by
Santi Azpilicueta. Reason: Making code readable (php was being stripped out)