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™

Separate page for each form/shortcode? (s2mPro)

s2Member Plugin. A Membership plugin for WordPress®.

Separate page for each form/shortcode? (s2mPro)

Postby toddz88 » November 24th, 2010, 12:49 am

Can anyone verify that it's indeed the case with s2Member PRO that I need to create a separate page in wordpress for each membership option I want to offer?

For example: I am offering a Monthly subscription and an Annual subscription. So my shortcodes for the payment forms each need to be on their own page (and url/slug), one for Monthly, and one for Annual. So i might have:
mysite.com/registration/monthly/
mysite.com/registration/annual/

Am I understanding this correctly? There's nothing dynamic that would enable me to have a single page for the registration/payment form that could handle both monthly and annual, right?

Thanks!
Todd
User avatar
toddz88
Experienced User
Experienced User
 
Posts: 61
Joined: November 19, 2010

Re: Separate page for each form/shortcode? (s2mPro)

Postby toddz88 » December 3rd, 2010, 8:46 pm

Another way to ask the question:

Is there a way to put multiple s2mPro PaymentForm ShortCodes on a single wp Page, but show them CONDITIONALLY, based on something dynamic?

I want to present the user with a page containing several links as the Subscription options (each that will have different prices, and other shortcode attributes). Clicking any link will take him to the (one) payment form page, where only the appropriate shortcode/form is displayed, based on which link he clicked. The links could each have a unique GET/url variable.. but i don't know if/how the payment form page could process that. I know how to do this kind of thing in php (in my theme files), but since the ShortCodes are all wp-content, not really php, then this conditional-logic must also be in s2m conditionals.

OR... is there a way to do the payment forms as pure php, rather than wp-shortcodes?

thanks!
todd
User avatar
toddz88
Experienced User
Experienced User
 
Posts: 61
Joined: November 19, 2010

Re: Separate page for each form/shortcode? (s2mPro)

Postby madsem » December 5th, 2010, 1:21 am

You can do that with php_exec in your pages and it's also not important how the checkout forms will take the GET variables, since you use the GET only in your custom script to select which form to display. So the checkoutform itself has nothing to do with the variables you send in the url, but easier is to just make several checkout pages? Then just give each of your subscription buttons the link to the appropriate checkout form ie /checkout-1/, checkout-2/ etc

This is also easier to maintain later
User avatar
madsem
Registered User
Registered User
 
Posts: 26
Joined: October 26, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron