Page 1 of 1

Using custom button

PostPosted: July 19th, 2011, 10:46 am
by hermansen
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.

Re: Using custom button

PostPosted: July 20th, 2011, 12:05 am
by Cristián Lávaque
What does that button shortcode output? Could you post the HTML here?

Re: Using custom button

PostPosted: July 21st, 2011, 8:41 am
by hermansen
<a class="cosmolink" href="" ><span type="button" class="cosmobutton green large"><span><span>Køb via Paypal</span></span></span></a>

Re: Using custom button

PostPosted: July 21st, 2011, 3:31 pm
by Cristián Lávaque
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.

Re: Using custom button

PostPosted: July 21st, 2011, 6:00 pm
by hermansen
I yah why didnt I think of that - great help thanks.

Re: Using custom button

PostPosted: July 21st, 2011, 6:07 pm
by Cristián Lávaque
:)