Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-02T02:10:42-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15719 2011-11-02T02:10:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15719&p=50760#p50760 <![CDATA[Re: HTML Link Instead of Form/Button for Paypal Subscribe]]>

Statistics: Posted by Cristián Lávaque — November 2nd, 2011, 2:10 am


]]>
2011-11-01T11:35:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15719&p=50699#p50699 <![CDATA[Re: HTML Link Instead of Form/Button for Paypal Subscribe]]>
Cristián Lávaque wrote:
Raam, have you tried using the anchor or URL output for the shortcode? WP Admin -> s2Member -> PayPal Button -> Shortcode Attributes -> output


Cristián, the URL output option is exactly what I was looking for -- thanks! I'll update my original post with the 'correct' solution to prevent confusion for others. :)

Cheers!

Statistics: Posted by Raam Dev — November 1st, 2011, 11:35 am


]]>
2011-11-01T00:06:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15719&p=50667#p50667 <![CDATA[Re: HTML Link Instead of Form/Button for Paypal Subscribe]]> WP Admin -> s2Member -> PayPal Button -> Shortcode Attributes -> output

Statistics: Posted by Cristián Lávaque — November 1st, 2011, 12:06 am


]]>
2011-10-31T12:04:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15719&p=50539#p50539 <![CDATA[Re: HTML Link Instead of Form/Button for Paypal Subscribe]]>
However, before I can do any of that, I need to give the s2Member form a name. Both the shortcode-generated form and the HTML provided by the button generator don't have a form a name.

How to Create an HTML link that submits Subscribe buttons

Update: As Cristián points out below, this can be achieved using the output="url" shortcode option (read more here: WP Admin -> s2Member -> PayPal Button -> Shortcode Attributes).

By changing the output option to 'url', the shortcode will return a raw URL that we can then use in an anchor tag to create a link:

Code:
<a href="[s2Member-PayPal-Button level="1" ccaps="" desc="Raam's Journal ($5/month)" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="raamdev.com" ta="0" tp="0" tt="D" ra="5.00" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="url" /]">Subscribe to the Journal ($5/month)</a>


When the post is published, that code turns into a link that allows my reader to subscribe to my journal:

Image

Statistics: Posted by Raam Dev — October 31st, 2011, 12:04 pm


]]>
2011-10-31T11:17:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15719&p=50531#p50531 <![CDATA[Re: HTML Link Instead of Form/Button for Paypal Subscribe]]> Statistics: Posted by Bruce C — October 31st, 2011, 11:17 am


]]>
2011-10-30T20:09:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15719&p=50502#p50502 <![CDATA[HTML Link Instead of Form/Button for Paypal Subscribe]]> <form> or WordPress shortcode. Is this possible?

I want to do something like this:

Code:
<a href="<subscribe link">Subscribe to my Journal - $5/month</a>

Statistics: Posted by Raam Dev — October 30th, 2011, 8:09 pm


]]>