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™

Using custom button

s2Member Plugin. A Membership plugin for WordPress®.

Using custom button

Postby hermansen » July 19th, 2011, 10:46 am

Hi,
I am using the Solidity premium theme on my blog. The theme comes with shortcodes and specifically buuton shortcode like this: [button size="large" color="green" style="none" new_window="false" link=""]Køb via Paypal[/button].

Is it possible to use that button inside the S2 plugin genrated Paypal button code, so I paste the shortcode button somewhere in:

Code: Select all
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="mail@dommer.dk" />
<input type="hidden" name="cmd" value="_xclick-subscriptions" />
<!-- Instant Payment Notification & Return Page Details -->
<input type="hidden" name="notify_url" value="http://www.dommer.dk/?s2member_paypal_notify=1" />
<input type="hidden" name="cancel_return" value="http://www.dommer.dk/" />
<input type="hidden" name="return" value="http://www.dommer.dk/?s2member_paypal_return=1" />
<input type="hidden" name="rm" value="2" />
<!-- Configures All Of The Checkout Fields -->
<input type="hidden" name="lc" value="" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="custom" value="www.dommer.dk" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="page_style" value="paypal" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="item_name" value="Medlem / description and pricing details here." />
<input type="hidden" name="item_number" value="1" />
<!-- Identifies/Updates An Existing User/Member ( when/if applicable )  -->
<input type="hidden" name="on0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" />
<input type="hidden" name="os0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />
<!-- Identifies The Customer's IP Address For Tracking -->
<input type="hidden" name="on1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1; ?>" />
<input type="hidden" name="os1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?>" />
<!-- Controls Modify Behavior At PayPal® Checkout -->
<input type="hidden" name="modify" value="0" />
<!-- Customizes Prices, Payments & Billing Cycle -->
<!--<input type="hidden" name="amount" value="0.01" />-->
<input type="hidden" name="src" value="1" />
<input type="hidden" name="srt" value="" />
<input type="hidden" name="sra" value="1" />
<input type="hidden" name="a1" value="0.00" />
<input type="hidden" name="p1" value="0" />
<input type="hidden" name="t1" value="D" />
<input type="hidden" name="a3" value="0.01" />
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="M" />
<!-- Displays The PayPal® Image Button -->
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>


Thanks in advance.
Last edited by Cristián Lávaque on July 19th, 2011, 11:57 pm, edited 1 time in total.
Reason: Improve code readability. http://www.primothemes.com/forums/viewtopic.php?f=36&t=2780
User avatar
hermansen
Registered User
Registered User
 
Posts: 7
Joined: July 10, 2011

Re: Using custom button

Postby Cristián Lávaque » July 20th, 2011, 12:05 am

What does that button shortcode output? Could you post the HTML here?
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: Using custom button

Postby hermansen » July 21st, 2011, 8:41 am

<a class="cosmolink" href="" ><span type="button" class="cosmobutton green large"><span><span>Køb via Paypal</span></span></span></a>
User avatar
hermansen
Registered User
Registered User
 
Posts: 7
Joined: July 10, 2011

Re: Using custom button

Postby Cristián Lávaque » July 21st, 2011, 3:31 pm

I see, it's a CSS button. Well, you could use the code that generates it and try to implement it to the PayPal form. Or just take a screenshot of it in the page and then use the image in the form.
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: Using custom button

Postby hermansen » July 21st, 2011, 6:00 pm

I yah why didnt I think of that - great help thanks.
User avatar
hermansen
Registered User
Registered User
 
Posts: 7
Joined: July 10, 2011

Re: Using custom button

Postby Cristián Lávaque » July 21st, 2011, 6:07 pm

:)
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


Return to s2Member Plugin

Who is online

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

cron