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™

Load pro-form via PHP

Common Questions/Problems/Tips. Posted by Administrators & Support Reps.

Load pro-form via PHP

Postby 21inspired » September 2nd, 2011, 2:43 pm

Is there a template tag / api call we can use to embed Paypal Pro Forms in our PHP template (rather than having to use a shortcode in a page)?
User avatar
21inspired
Registered User
Registered User
 
Posts: 12
Joined: October 14, 2010

Re: Template tag for Pro Forms

Postby Jason Caldwell » September 6th, 2011, 1:36 pm

Thanks for the excellent question.

Yes, you can use this function, and just pass it an array of Shortcode Attributes.
Code: Select all
<?php
$attr 
= array("level" => "1", "ra" => "24.95"); // Any Shortcode Attribute you like.
echo c_ws_plugin__s2member_pro_paypal_form::sc_paypal_form($attr));
?>
For a full list of Shortcode Attributes, please check your Dashboard, under:
s2Member -> PayPal Pro Forms -> Shortcode Attributes (Explained).

Also see docs here: viewtopic.php?f=40&t=12764&src_doc_v=110815
~ 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: Template tag for Pro Forms

Postby 21inspired » September 6th, 2011, 1:43 pm

Much appreciated... thanks
User avatar
21inspired
Registered User
Registered User
 
Posts: 12
Joined: October 14, 2010


Return to Common Questions/Problems/Tips

Who is online

Users browsing this forum: No registered users and 2 guests

cron