Forums

Paypal coding

deons1@iafrica.com 13 Oct, 2007
Hi,

I have attached the complete html codeing, i'm not quite sure on how to get this to work within Chronoform, this html coding already works with Paypal, just need to implement into Chronoforms.

Thanks in advance,
Deon [file name=uk_paypal.txt size=5647]http://www.chronoengine.com/components/com_fireboard/uploaded/files/uk_paypal.txt[/file]
GreyHead 13 Oct, 2007
Hi Deon,

I think that this should be possible to drop into ChronoForms. I did notice though that the Form action includes onsubmit="this.target='paypal' . . ." and this doesn't seem to be referenced anywhere? Perhaps it's unimportatn but I thought I'd ask?

Bob
deons1@iafrica.com 15 Oct, 2007
Dear Bob

Im not too sure about the onsubmit="this.target='paypal' as this is how i received the form.

I have changed the form slightly & inserted into the Chronoform, however when i click on "order now" a window pops up & says "The webpage you are viewing is trying to close the tab" if you select Yes is should take you to the paypal processing page, but it just closes the website.

If you load the html order form outside of the CMS is redirects to Paypal 7 works.

The page in CMS: http://www.staminafit.eu/index.php?option=com_chronocontact&chronoformname=uk-paypal

The page outside CMS: http://www.staminafit.eu/test/uk-paypal.html

Please advise on how to get this to redirect to Paypal from Chronoforms.

Kind Regards,
Deon
Max_admin 15 Oct, 2007
Hi Deon,

I use Firefox 2, both pages get closed once I click the order now button, the CMS page has an error, the onload tag at the body tag has a function called get_random which is not defined.

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 17 Oct, 2007
Hi Deon,

I spent some time looking at this form yesterday and again today but there's so much going on that it's hard to pin down the errors.

As Max said, you have a get_random call in the <body> tag that isn't defined. (You also have two <body> tags which probably isn't helping.)

You have the calculation JavaScript running on the Radio buttons, but there is no visible output to see if they are working. I think the code is just there to copy the amount into th hidden field but I'm not sure about that.

The biggest problem seems to be to identify the form to the JavaScript so that Read Form actually runs from ChronoForms. My JavaScript is very basic but I think you may need to add a form ID to do this.

I'd suggest that you make a much simpler version of the form code to use for development - take out all the cruft, bells and whistles. Get it working in basic form then add stuff back in step by step.

Sorry not to be more help.

Bob
Max_admin 17 Oct, 2007
Hi Deon,

Regardless of any other issues, when I click the buy now button, your page gets closed!!! why ?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
deons1@iafrica.com 17 Oct, 2007
Hi Max

This form was taken from the clients previous website, it seems there are just too many problems, i think it will be a better idea to just create a new form.

Regards,
Deon
Max_admin 18 Oct, 2007
Ok Deon, just make sure it doesn't get closed on click at the normal HTML and it wont do this at ChronoForms too, when I tested it before it was closing anywhere!!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.