Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-10-16 06:14:47
- AnjiPanji
- New Member
- Registered: 2007-09-30
- Posts: 3
Textpattern/Paypal Form outputing too many buttons.
Hi,
I am trying to make an article form that will output Paypal buttons populated with customfields. All works fine, except that for each article 4 paypal buttons are output, (there are four articles total).
Here is my code for the <txp:article form=“paypal_button” />
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com//en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="add" value="1" />
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="some email address" />
<input type="hidden" name="item_name" value="VR<txp:custom_field name="cat_number"/> <txp:custom_field name="paypal_title"/>" />
<input type="hidden" name="amount" value="<txp:custom_field name="price" />" />
<input type="hidden" name="buyer_credit_promo_code" value="" />
<input type="hidden" name="buyer_credit_product_category" value="" />
<input type="hidden" name="buyer_credit_shipping_method" value="" />
<input type="hidden" name="buyer_credit_user_address_change" value="" />
<input type="hidden" name="no_shipping" value="0" />
<input type="hidden" name="no_note" value="1"/>
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="bn" value="PP-ShopCartBF" />
</form>
I have tried putting a limit=“1” on the form, but the only the most recent article button shows…
Any Ideas?
Thanks for the help
Last edited by AnjiPanji (2007-10-16 06:59:06)
Offline
Re: Textpattern/Paypal Form outputing too many buttons.
sounds like you’re not putting the forms into their right context.
what does the page template utilizing your paypal forms look like?
Last edited by iblastoff (2007-10-16 12:20:49)
Offline
#3 2007-10-16 15:12:35
- AnjiPanji
- New Member
- Registered: 2007-09-30
- Posts: 3
Re: Textpattern/Paypal Form outputing too many buttons.
Ahh…I figured it out.
I had the paypal form in an Form type of ‘article’, and for some reason that was outputing 4 buttons per article. I switched the form type to ‘misc’ and it works great. Could anyone still explain to me why the article form was doing that?
Thanks
Offline
#4 2007-10-24 09:50:36
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Textpattern/Paypal Form outputing too many buttons.
The form “type” makes no difference, that’s only there for organization and the tagbuilder.
Offline