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.

s2member-pro-paypal-form on error url

Home Forums Community Forum s2member-pro-paypal-form on error url

This topic contains 3 replies, has 2 voices. Last updated by  Bruce 4 years ago.

Topic Author Topic
Posted: Saturday Dec 29th, 2012 at 11:19 am #35716
Alex Read
Username: lab41

Hi, I would like to specify an onerror url or a coupon confirmation url for my paypal form. The reason is that on a conventional page load the form is halfway down the page and also hidden until you click on a button. I would like to add to the error url to position/show content (using javascript) apropriately.
Thanks,

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Sunday Dec 30th, 2012 at 2:09 am #35774
Bruce
Username: Bruce
Staff Member

Hi Alex,

You could put a duplicate shortcode into another page, and use JavaScript to change the action attribute of your Pro Form. If your theme is loading jQuery, this should work:

$(document).ready(function() {
	$('#s2member-pro-paypal-registration-form').attr('action', 'http://yoursite.com/my/other/page/with/the/shortcode');
});
Posted: Wednesday Jan 2nd, 2013 at 9:02 am #35970
Alex Read
Username: lab41

Hi, thanks for this it works well. I had to use

$('#s2member-pro-paypal-checkout-form') 
//instead of 
$('#s2member-pro-paypal-registration-form')
Posted: Thursday Jan 3rd, 2013 at 2:00 pm #36121
Bruce
Username: Bruce
Staff Member

Hi Alex,

Thanks for the info. Glad to hear you got it working.

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

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.