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
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
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
I see, how did you make this scenario ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
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
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
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
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
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.....
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
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Yes, that seems to work! Thanks Max....Dan
great! no problems!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
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
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
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
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
Thanks so much for sharing this!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.