Forums

Random discount code

nik_298 06 Apr, 2015
Hi there,
we are looking for a Joomla Form component which provides the users with a random “coupon” code at the end of a feedback survey.

The idea is the following: we submit a link to the survey to our customers. A customer complete the survey and receive a coupon code. He comes back to our shop and shows us the code. We verify it (so all the generated codes should be saved somewhere) and provide him with a special discount on one of our products.

Can we achieve somthing like that with Chronoforms?
Thanks and have a nice day!

Nicolò
GreyHead 07 Apr, 2015
1 Likes
Hi Nicolò,

Yes you can do that.

Use a Custom Code action to create a random string when the form submits; show the code on a Thank You page and save the result to a Database table to be checked later. I'd also add a status column and update that when the coupon is claimed to stop it being used again.

Bob
nik_298 07 Apr, 2015
Thanks Bob for your fast reply!

So from the Custom Code action to the status column, I can do everything with Chronoforms?
That would be awesome, as I'm not so good at coding 🙂

I'll try that in the next hours!

Nicolò
GreyHead 07 Apr, 2015
Hi Nicolò,

You'll need little bits of custom code to generate the Coupon code and set the status value.

Bob
This topic is locked and no more replies can be posted.