Hello,
I am new to chronoforms. Very cool.
I am not sure how to set this up. We want to be able to give people a box with a coupon code to enter, and if they enter the correct code, the price will be zero. I have a pretty good idea of how to set the coupon code part up with jQuery, but how to handle the zero amount with auth.net?
THanks!
Hi Pableron,
Difficult to do conditional processing with CFv3.2 but OK with CFv4 - you can make running the Auth.net action conditional on the success of a previous step.
Bob
Thanks for your reply Bob. I just bought this last week, so I assume that it is the latest version? But I don't see where to insert conditional logic. You mean just use PHP somewhere in the form? Is there an example of how to do this somewhere?
Thanks!
Pab
Hi Pab,
Please check which version you have downloaded; they are both current.
Bob
It is 3.2 - can I upgrade it pretty easily?
Hi pabloron,
There is no upgrade for the forms you've created. You can copy and paste over the form HTML but the styling will be lost. It's probably just as easy to recreate.
You can install both versions in the same Joomla! 1.5 installation *but* CFv3.2 requires the MooTools upgrade plug-in disabled; and CFV4 requires it enabled.
I'm pretty certain that the subscription/validation can be transferred between the two - you may need to cotact Max for the specifics of how to do that.
Bob
Bob,
Can you tell me where the auth.net code is executed (i.e. file name / location)? I can just pop a conditional statement in there if the amount is zero, I just need to know where to do that.
Thanks,
Pab
Hi Pab,
The plug-in code is in components/com_chronocontact/plugins/cf_Authorize_dotnet.php You need to edit the onSubmit function that starts around line 318
Bob