Community Support Forums — WordPress® ( Users Helping Users ) — 2011-05-28T18:32:25-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6590 2011-05-28T18:32:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16196#p16196 <![CDATA[Re: html button]]>

Statistics: Posted by Cristián Lávaque — May 28th, 2011, 6:32 pm


]]>
2011-05-28T18:24:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16194#p16194 <![CDATA[Re: html button]]> Statistics: Posted by leonellfp — May 28th, 2011, 6:24 pm


]]>
2011-05-28T18:06:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16191#p16191 <![CDATA[Re: html button]]>

Statistics: Posted by Cristián Lávaque — May 28th, 2011, 6:06 pm


]]>
2011-05-28T17:43:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16186#p16186 <![CDATA[Re: html button]]>
On the first line of the code, I change this:
Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" >


to this
Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">


Am I right...?

Thanks

Statistics: Posted by leonellfp — May 28th, 2011, 5:43 pm


]]>
2011-05-28T17:35:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16185#p16185 <![CDATA[Re: html button]]>
That solve the html button issue...
How can I change the button full code to open the paypal page on a new window ?
(target="_blank")

Many thanks!

Statistics: Posted by leonellfp — May 28th, 2011, 5:35 pm


]]>
2011-05-28T16:53:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16182#p16182 <![CDATA[Re: html button]]> <?php and ?>, so values will be empty for those fields value="".

Statistics: Posted by Cristián Lávaque — May 28th, 2011, 4:53 pm


]]>
2011-05-28T15:38:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16172#p16172 <![CDATA[Re: html button]]> So if I understand correctly I can use the full code removing the 2 php lines ?

Code:
[s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0" /]
[s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0" /]


Or do I have to put anything else ?

Many Thanks

Statistics: Posted by leonellfp — May 28th, 2011, 3:38 pm


]]>
2011-05-28T15:12:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16167#p16167 <![CDATA[Re: html button]]>
You can read the documentation for those fields at the bottom of WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants.

S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0 ... This auto-fills the on0 value in PayPal® Button Codes. If a Button Code is presented to a logged-in Member, this will auto-fill the value for the on0 input variable, with the string: "Referencing Customer ID". Otherwise, it will be an empty string.

S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0 ... This auto-fills the os0 value in PayPal® Button Codes. If a Button Code is presented to a logged-in Member, this will auto-fill the value for the os0 input variable, with the value of S2MEMBER_CURRENT_USER_SUBSCR_OR_WP_ID. Otherwise, it will be an empty string.

These two Constants are special. They are used by the PayPal® Button Generator for s2Member. This is how s2Member identifies an existing Member ( and/or a Free Subscriber ), who is already logged in when they click a PayPal® Modification Button that was generated for you by s2Member. Instead of forcing a Member ( and/or a Free Subscriber ) to re-register for a new account, s2Member can identify their existing account, and update it, according to the modified terms in your Button Code. These three Button Code parameters: on0, os0, modify, work together in harmony. If you're using the Shortcode Format for PayPal® Buttons, you won't even see these, because they're added internally by the Shortcode processor. Anyway, they're just documented here for clarity; you probably won't use these directly; the Button Generator pops them in.


I hope that helps.

Statistics: Posted by Cristián Lávaque — May 28th, 2011, 3:12 pm


]]>
2011-05-28T12:51:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16152#p16152 <![CDATA[Re: html button]]> Is this still possible ?

Statistics: Posted by leonellfp — May 28th, 2011, 12:51 pm


]]>
2011-05-28T12:25:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16148#p16148 <![CDATA[Re: html button]]>
You can use shortcode for them instead of PHP, try replacing those with these, as long as you use them in the WordPress installation you have s2member in:

Code:
[s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0" /]
[s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0" /]


Hmm... re-reading your first post, though, you're probably using the button in another website, right?

Statistics: Posted by Cristián Lávaque — May 28th, 2011, 12:25 pm


]]>
2011-05-28T04:12:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16134#p16134 <![CDATA[Re: html button]]>
I paste the full code, but when I click the button the paypal page shows some php code... :roll:

Please see the bellow image:
Image

Many thanks

Statistics: Posted by leonellfp — May 28th, 2011, 4:12 am


]]>
2011-05-28T00:56:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16118#p16118 <![CDATA[Re: html button]]> Statistics: Posted by Cristián Lávaque — May 28th, 2011, 12:56 am


]]>
2011-05-27T09:52:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6590&p=16077#p16077 <![CDATA[html button]]>
Can I use the paypal Resulting PayPal® Button Code in an html page outside wordpress ?

Many thanks!

Statistics: Posted by leonellfp — May 27th, 2011, 9:52 am


]]>