Page 1 of 1

PayPal Pro Form Customizations

PostPosted: August 3rd, 2011, 7:59 pm
by lewayotte
I don't really like the way the PayPal Pro forms look, not elegant enough (no offense). Is there any documentation for changing the forms? I'd like it to slim it down a bit and rearrange some fields. It'd also be nice if I could just have one form with 3 membership options to choose from. Like allow a user to select "10$/mo | 25$/qrt | 90$/yr"... not a big deal, but it'd be cool.

Re: PayPal Pro Form Customizations

PostPosted: August 4th, 2011, 12:05 am
by Cristián Lávaque
You can edit it using CSS so it's more compact, or you can customize the form's template.

Is it possible to modify the PayPal® and/or Authorize.Net® Pro Form templates?

Usually not necessary. But yes, if you really need to. Please check your /s2member-pro/includes/templates/forms/ directory. You can take the default templates, and place some ( or all of them ) into your own WordPress® theme directory. s2Member Pro will automatically find your custom templates there. By placing custom templates into your theme directory, you can be sure they won't get overwritten in a future upgrade. Either that, or you can just use the default templates like they are, and customize them with your own CSS rules inside the Stylesheet for your WordPress® theme ( i.e. style.css ). If you're using a PriMo Theme ( for instance, the s2Clean Theme ), check your Theme Options Panel, under: Custom CSS / Style Sheet.


And WP Admin -> s2Member -> PayPal Pro-Forms -> Shortcode Attributes (Explained) -> template

template="" 100% optional. This can be a custom template file that exists inside your WordPress® theme directory. For example: template="checkout.php".


To change the pro-form, you could probably have another small form to select the product and reload the page to get the pro-form for it. You could use $_SERVER['REQUEST_URI'] for that small form's action, and based on the option you'd show one pro-form or the other.

Does that help?

Re: PayPal Pro Form Customizations

PostPosted: August 4th, 2011, 5:51 am
by lewayotte
Interesting, I didn't notice the template argument, but I'm not exactly sure what it does from the description. Is there more documentation?

Thanks.
Lew

Re: PayPal Pro Form Customizations

PostPosted: August 5th, 2011, 12:25 am
by Cristián Lávaque
No, that's the documentation for it so far. You can put the custom template file in your theme's dir or the wp-content dir. The custom template can be a PHP file, not just HTML. Keep the IDs and such as they are so the JS works for the pro-form.

Let me know if you run into trouble.

Re: PayPal Pro Form Customizations

PostPosted: August 5th, 2011, 6:48 am
by lewayotte
Thanks... I'll give it a whirl :)

Re: PayPal Pro Form Customizations

PostPosted: August 5th, 2011, 10:27 pm
by Cristián Lávaque
Cool. :)