Page 1 of 1

Return user to message area of BPress after checkout

PostPosted: November 8th, 2011, 8:14 pm
by teamNOOB
Hello,

What I am hoping to achieve is, when the user completes membership process and pays through s2m/PayPal, they are returned to the Message/Compose area within their Profile section.

The URL would be something like:
Code: Select all
<?php echo bp_loggedin_user_domain() ?>messages/compose


Is this at all possible? If not is their a different solution? Happy to compromise.

I know that I can specify a Return URL through PayPal but last time I checked I can't use shortcodes or php that links to the users Message/Compose area within their Profile section.


Hope that makes sense.

Thanks,
Ben

Re: Return user to message area of BPress after checkout

PostPosted: November 9th, 2011, 9:31 pm
by teamNOOB
Sorry to bump this but I'm sure I've seen a solution to this.

I'm watching all of the s2m video tutorials in hope of finding the answer - but would be awesome if someone could save me the time :)

Re: Return user to message area of BPress after checkout

PostPosted: November 12th, 2011, 1:12 am
by Cristián Lávaque
If you have s2Member Pro, you could use the success attribute for your PayPal pro-form/button shortcode.

WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes -> success
WP Admin -> s2Member -> PayPal Pro-Froms -> Custom Return URLs On Success

viewtopic.php?f=36&t=1604

I hope that helps. :)

Re: Return user to message area of BPress after checkout

PostPosted: November 12th, 2011, 4:22 am
by teamNOOB
Hey Cristián!

I certainly do have the pro version :) I'll give that a try!

Thanks so much,
Ben

Re: Return user to message area of BPress after checkout

PostPosted: November 12th, 2011, 3:18 pm
by Cristián Lávaque
Cool! :)