I need a discount coupon code added into my registration form. I am using ChronoEngine's Chronoforms for the form creation. I need the user to be able to enter a coupon code to be validated and then have the amount field discounted properly based on the code entered.
Here is the form:
http://www.teneoevents.eu/index.php?option=com_chronoforms&chronoform=registration
Thank you.
Hi germanru,
Probably the neatest way to do this is to set up a custom Ajax call from the coupon code element back to a form event where you have some custom PHP to check the code validity and return the discount to be applied.
A simpler solution is to do the check after the form is submitted and then to apply the discount and show it on the Thank You page.
Bob
PS Please be very careful taking credit card data - you should probably have https on your site and make sure that you do not save any of that information locally.
Thanks for your help Bob, my boss has decided that we don't really need that promo codes now. But thanks for your help, it seems you are always helping everyone here as soon as you can. Thanks for that. Hello from Spain.