Forums

auth.net form free or coupon discount

pabloron 27 May, 2011
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!
GreyHead 27 May, 2011
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
pabloron 27 May, 2011
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
GreyHead 27 May, 2011
Hi Pab,

Please check which version you have downloaded; they are both current.

Bob
pabloron 27 May, 2011
It is 3.2 - can I upgrade it pretty easily?
GreyHead 27 May, 2011
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
pabloron 27 May, 2011
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
GreyHead 28 May, 2011
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
This topic is locked and no more replies can be posted.