Buy Now
Sign in

Paypal coding

deons1@iafrica.com , October 13 2007, 16:29
D
deons1@iafrica.com 17
October 13 2007, 16:29 #2785
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 64
October 13 2007, 20:35 #2787
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
D
deons1@iafrica.com 17
October 15 2007, 04:39 #2792
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
admin 28
October 15 2007, 23:04 #2815
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
If your main question got answered then please mark the answer using the button!
Did you try the new ChronoForms7 ? if yes then please send us your comments!!
D
deons1@iafrica.com 17
October 17 2007, 14:18 #2867
Dear Max

The Code:
<body onload="get_random()">

This generates a random order number in the order form, it was added to the template main file index.php, in the body tag.

It seems to work. - Do you have any advice on how to fix this error?

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

But it does not redirect to Paypal, am i doing something wrong?

Kind Regards,
Deon
GreyHead 64
October 17 2007, 15:58 #2870
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
admin 28
October 17 2007, 18:17 #2875
Hi Deon,

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

Max
Max
If your main question got answered then please mark the answer using the button!
Did you try the new ChronoForms7 ? if yes then please send us your comments!!
D
deons1@iafrica.com 17
October 17 2007, 18:37 #2876
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
admin 28
October 18 2007, 19:01 #2909
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
If your main question got answered then please mark the answer using the button!
Did you try the new ChronoForms7 ? if yes then please send us your comments!!