PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

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

s2Member Plugin. A Membership plugin for WordPress®.

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

Postby FrancescoRizzi » May 7th, 2011, 10:00 am

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
User avatar
FrancescoRizzi
Registered User
Registered User
 
Posts: 21
Joined: December 2, 2010

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

Postby Cristián Lávaque » May 7th, 2011, 1:34 pm

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

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

Postby FrancescoRizzi » May 7th, 2011, 1:42 pm

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!
User avatar
FrancescoRizzi
Registered User
Registered User
 
Posts: 21
Joined: December 2, 2010

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

Postby Cristián Lávaque » May 7th, 2011, 2:51 pm

Great! :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

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

Postby Diomenas » May 25th, 2011, 12:44 pm

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.
User avatar
Diomenas
Registered User
Registered User
 
Posts: 7
Joined: April 26, 2011

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

Postby Jason Caldwell » May 25th, 2011, 7:57 pm

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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

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

Postby Diomenas » May 26th, 2011, 7:19 am

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.
User avatar
Diomenas
Registered User
Registered User
 
Posts: 7
Joined: April 26, 2011

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

Postby Jason Caldwell » May 26th, 2011, 3:59 pm

Great to hear that!
Thanks again for the KUDOS :-)
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests

cron