Auto-transfer to WP Registration after Payment
Posted: November 7th, 2011, 1:58 pm
After someone subscribes via Paypal, they are transferred back to my site where s2Member displays a page with a link to go to the Registration page. I'd like to automatically transfer buyers to the registration page to reduce the number of steps required during the subscription process.
I tried modifying s2member/includes/templates/returns/default-return.php by adding a JavaScript redirect that automatically transfers new subscribers to the register page:
However, this technique seems to work sporadically. Sometimes the registration page is displayed and other times a message appears that tells paying subscribers that Registration is disabled (I have Open Registration disabled, so only paying subscribers can register). Also, when this happens users never receive the Signup Confirmation email, so they essentially have no way of filling out the registration form.
I'm not sure if there's a better way of doing this or if I'm missing something with how the registration process works. Any help would be greatly appreciated.
I tried modifying s2member/includes/templates/returns/default-return.php by adding a JavaScript redirect that automatically transfers new subscribers to the register page:
- Code: Select all
<body onLoad="window.location.href='https://raamdev.com/wordpress/wp-login.php?action=register'">
However, this technique seems to work sporadically. Sometimes the registration page is displayed and other times a message appears that tells paying subscribers that Registration is disabled (I have Open Registration disabled, so only paying subscribers can register). Also, when this happens users never receive the Signup Confirmation email, so they essentially have no way of filling out the registration form.
I'm not sure if there's a better way of doing this or if I'm missing something with how the registration process works. Any help would be greatly appreciated.