Forums

PayPal form code troubles

dcomposer 13 Oct, 2008
Hi,

I have a PayPal form code problem: in each of the pages where I use PayPal form code code, the first instance of a paypal button/code does not behave properly (does not go to paypal website link) whereas each subsequent instance of a paypal button/code works correctly.I have been using the Chrono Forms plug-in for over a year without difficulty until I upgraded to the current version 2.3.9. Any help is greatly appreciated. Dan
Max_admin 13 Oct, 2008
Hi Dan,

you mean that if your form code has more than one paypal link then all of them work as expected except the first one ?

Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Max_admin 13 Oct, 2008
I see, how did you make this scenario ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
dcomposer 13 Oct, 2008
I created the page as html using Dreamweaver, pasting in PayPal codes provided by PayPal, all of which is then pasted in to the Form Code area of the Chrono Form component. Thanks, Dan
GreyHead 13 Oct, 2008
Hi dcomposer,

I'm guessing that you have something wrong with the form tags. You need to take them out of the code and put the PayPal url in the redirect url box.

Can we see the page?

Bob
dcomposer 13 Oct, 2008
Yes, here is the page code (excerpted):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<p>Harvestworks offers small personal classes in our newly designed classroom. Classes classes come with 8hrs of lab time in our computer lab. For inquiries or to sign up you can also call Hans Tammen at 212-431-1130 ext 13.<br>
  <br>
Although PayPal is handling the secure payments on this website, you don't need to have a PayPal account to pay for classes. Just klick on "I currently do not have a PayPal account" during checkout, and you can pay with credit card. To see the contents of your shopping cart, click "view cart".</p>
<p><br>
  ========================================<br>
  MAX/MSP/JITTER & INTERACTIVE CLASSES <br>
========================================</p>
<p><br>
  <strong>INTRODUCTION TO MAX/MSP</strong><br>
  Zachary Seldess<br>
  Tuesdays, September 23 and 30, October 7 and 14 - 6:30-9:30pm<br>
  $430/$490<br>
This 12hr introductory course includes basic programming with Max, MIDI, control, user interfaces, timing objects, and s<br>
ENROLLMENT CLOSED </p>
<p><strong><br>
  MAX/MSP/JITTER FULL WEEK INTENSIVE COURSE !!!</strong><br>
  Dafna Naphtali / Zachary Seldess / Hans Tammen <br>
  Mon - Fri, November 3 through 7, 10am - 6pm (---with special break to vote on November 4th, and election night TV----) <br>
  $1200 + membership $75<br>
Full week 40hr intensive course in Max/MSP and Jitter.</p>
  <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="image" src="http://www.harvestworks.org/cms/images/paynonmember25.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="payment@harvestworks.org">
    <input type="hidden" name="item_name" value="Max/MSP/Jitter Intensive">
    <input type="hidden" name="item_number" value="597">
    <input type="hidden" name="amount" value="1275.00">
    <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="1">
    <input type="hidden" name="return" value="http://www.harvestworks.org">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="bn" value="PP-ShopCartBF">
</form>
  <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
  <input type="image" src="http://www.harvestworks.org/cms/images/paynonmember25.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="payment@harvestworks.org">
  <input type="hidden" name="item_name" value="Max/MSP/Jitter Intensive">
  <input type="hidden" name="item_number" value="597">
  <input type="hidden" name="amount" value="1275.00">
  <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="1">
  <input type="hidden" name="return" value="http://www.harvestworks.org">
  <input type="hidden" name="currency_code" value="USD">
  <input type="hidden" name="lc" value="US">
  <input type="hidden" name="bn" value="PP-ShopCartBF">
</form>
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
  <input type="image" src="http://www.harvestworks.org/cms/images/paymember25.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="payment@harvestworks.org">
  <input type="hidden" name="item_name" value="Max/MSP/Jitter Intensive (Member)">
  <input type="hidden" name="item_number" value="597">
  <input type="hidden" name="amount" value="1200.00">
  <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="1">
  <input type="hidden" name="return" value="http://www.harvestworks.org">
  <input type="hidden" name="currency_code" value="USD">
  <input type="hidden" name="lc" value="US">
  <input type="hidden" name="bn" value="PP-ShopCartBF">
</form>
<p>
  <strong><br>
  INTRODUCTION TO JITTER</strong><br>
Zachary Seldess<br>
Tuesdays, November 4, 11 and 18 - 6:30-9:30pm<br>
$325/$385<br>
Max_admin 13 Oct, 2008
Hi dcomposer,

for this solution, using Chronoforms is meaningless, you are using it as an HTML holder, you don't need any forms processor here, it can be done but it just makes it harder for you, no need for this.

disable the wysiwyg editor at your site, create a new content page, add the code above to the content text box, save then enable the editor again, never try to edit this content again with the editor enabled, now this content page will have your paypal forms working!

Cheers,

Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
dcomposer 13 Oct, 2008
Hi Max,
Thanks for the suggestion. If I understand you correctly, you are telling me not to use Chrono Forms for my PayPal code related pages, is that right? I would be delighted if that would work, but that has not been my experience - the code ultimately always gets mangled somehow, even with the wysiwyg off....which is why I began using Chrono Forms in the first place, which, with this minor exception, has always worked.....
Max_admin 13 Oct, 2008
yes, for this scenario its easier to turn off the the editor and do it, if you didn't open the page in editor then your code should be safe, chronoforms doesn't work because it simply adds form tags which interferes with the first one you have, I have an idea, clean your code by removing this at the top :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>


now, at the top of your code add :

</form>

this will close the chronoforms first form tag, then continue your code but at the end of your code add :

<form>

this will be for the chronoforms form close tag!

let me know!

Cheers

Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
dcomposer 13 Oct, 2008
Yes, that seems to work! Thanks Max....Dan
Max_admin 13 Oct, 2008
great! no problems!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
GreyHead 13 Oct, 2008
Hi Dan,

As a side comment, when there is no input field it's probably simpler to use url links to PayPal that forms with all the hidden fields. You can construct a long link with all the same values and it works just as well.

Bob
johnnyf 19 Nov, 2008

Hi,

I have a PayPal form code problem: in each of the pages where I use PayPal form code code, the first instance of a paypal button/code does not behave properly (does not go to paypal website link) whereas each subsequent instance of a paypal button/code works correctly.I have been using the Chrono Forms plug-in for over a year without difficulty until I upgraded to the current version 2.3.9. Any help is greatly appreciated. Dan



I had a problem tonight with a simple PayPal button to make a direct, one off payment to PayPal and then return either to a cancel page
or if the payment was made, to an email form which is submitted to my site.
After reading your post I decided to copy the Paypal button code and paste it below the first.
I then deleted the two lines of code refering to the Paypal image and tested it.
It worked no problem.
Regards,
John
Max_admin 19 Nov, 2008
Hi Johny,

thanks for sharing this, if you can post your code too then this will be great, you can hide any private data in your code!

Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
johnnyf 20 Nov, 2008
Hi Max,

This is the code I used.

form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="*******">
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$REMOVE THIS CODE $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
</form>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="*******">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

The button code and Cancel and Reurn pages were set up on the "make a button" section of PayPal's site.

Regards,
John
Max_admin 20 Nov, 2008
Thanks so much for sharing this!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.