Page 1 of 1

Multiple s2Member-Pro-PayPal-Form shortcodes on single page?

PostPosted: May 7th, 2011, 10:00 am
by FrancescoRizzi
I'm building a page to let our users change/renew their membership.
We are actually using custom capabilities to differentiate among the membership levels, so they are all technically level-1 members, but they have custom capabilities like "Alpha", "Bravo", etc.

I was building this:
At the top of the page we display a list of the 'levels': Alpha, Bravo, etc
Clicking on one of them would display the corresponding s2Member-Pro form to 'renew'.

However, it seems that the s2Member forms get thrown off if I include multiple ones in the same page.
So, when I have a single
Code: Select all
<?php echo do_shortcode('[s2Member-Pro-PayPal-Form level="1" ccaps="+alpha" desc="ALPHA" ps="paypal" cc="USD" ns="1" custom="localhost" ta="0" tp="0" tt="D" ra="4242" rp="1" rt="Y" rr="BN" modify="1" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]'); ?>


The page brings up the update form with the user info pre-populated (great)
But if my template includes that shortcode, AND a second one such as this one:

Code: Select all
<?php echo do_shortcode('[s2Member-Pro-PayPal-Form level="1" ccaps="+beta" desc="BETA" ps="paypal" cc="USD" ns="1" custom="localhost" ta="0" tp="0" tt="D" ra="4242" rp="1" rt="Y" rr="BN" modify="1" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]'); ?>


Then both forms think that this is a new user (so they display the whole form, with no pre-populated data, as if it was a new membership application).

Is this indeed a (current) limitation of s2Member (ie: only one s2Member form shortcode per page is allowed), or am I doing something wrong that may be triggering this?

('cause, of course, if this is a limitation I'll revert to using multiple pages - no biggie)

Thanks in advance,
F

Re: Multiple s2Member-Pro-PayPal-Form shortcodes on single p

PostPosted: May 7th, 2011, 1:34 pm
by Cristián Lávaque
Hello Francesco. :)

Yes, this is a limitation right now. Hopefully this will be possible in the near future. I'm glad it's not a problem for you to have them in separate pages.

Re: Multiple s2Member-Pro-PayPal-Form shortcodes on single p

PostPosted: May 7th, 2011, 1:42 pm
by FrancescoRizzi
Cool - thanks for confirming. Absolutely no problem for us: the multi-page approach works just fine. Also, thanks again for the code you shared in the other thread. We're approaching 'done', thanks in no small part for all the help from you and Jason!

Re: Multiple s2Member-Pro-PayPal-Form shortcodes on single p

PostPosted: May 7th, 2011, 2:51 pm
by Cristián Lávaque
Great! :)

Re: Multiple s2Member-Pro-PayPal-Form shortcodes on single p

PostPosted: May 25th, 2011, 12:44 pm
by Diomenas
I had a similar issue as above; however, my issue isnt with pre-populated data, it's with the Captcha form. I am able to nest 4 different forms onto one page (two registration, a billing update, and a cancel) and they are separated using a tabbed browsing plugin. The issue i'm having is that only ONE of these forms has a reCaptcha associated with it when you view the page (despite all forms having the captcha= attribute).

Is it currently being worked on to have functionality to have more than one form per page? I have S2MemberPro, and this is something that would come in handy not just for me but for my company (I work for a developer).

My site I'm working on is http://www.lazerworkz.com/member-services/ if you would like to see how we are using the forms. The plugin being used for the tabbed browsing is GT Tabs. Right now due to the functionality not working, I have disabled the captcha on all forms except the cancellation form.

Re: Multiple s2Member-Pro-PayPal-Form shortcodes on single p

PostPosted: May 25th, 2011, 7:57 pm
by Jason Caldwell
Thanks for the feedback on this topic. Yes, this is something that we're working toward. There's more to this than meets the eye. From design and templating, to form processing within WordPress and communicating with Payment Gateways properly with multiple forms on one page, it's a bit of a challenge. We'll get there though, thanks for your patience.

Re: Multiple s2Member-Pro-PayPal-Form shortcodes on single p

PostPosted: May 26th, 2011, 7:19 am
by Diomenas
I can imagine, thank you for the effort and support, as a fellow plugin developer myself, i understand the great deal of headache and challenge that creating plugins can pose and your team has done a great job with s2Member. When i started with my current company, they were using Amember anytime a customer needed membership capabilities in WordPress and I quickly turned the tables and forced s2Member on the company, and we havent looked back :) Thanks again for all of your hard work.

Re: Multiple s2Member-Pro-PayPal-Form shortcodes on single p

PostPosted: May 26th, 2011, 3:59 pm
by Jason Caldwell
Great to hear that!
Thanks again for the KUDOS :-)