Gift Voucher - Post ID 253068

User 2662913 Photo


Registered User
5 posts

Hi: I've been using the software for a while now (Also have RED BTW) and thus far it's great.
OK, what I want to do now is push the boundaries a little. I need to design a gift voucher system for a restaurant. This will involve a contact form, a paypal link, and ultimately a pdf doc with a serial number (so it can't be used twice) I have the vague idea this could be done with WFB and RED (with a little coding).
So before I go re-inventing the wheel...has anybody done this before? Is it even remotely possible? am I asking the wrong questions? What is the square root of February?
Cheers
Mark
User 187934 Photo


Senior Advisor
20,271 posts

I can see what your after but how do you plan on presenting the voucher number to the user?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2662913 Photo


Registered User
5 posts

Not quite sure as at the moment...I'm researching number generating code....not much luck thus far....
User 187934 Photo


Senior Advisor
20,271 posts

How are users going to qualify for the discount?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2662913 Photo


Registered User
5 posts

I'm not offering a discount as such...the owner of the venue wants to have a gift voucher option available on the website. A 'simple' click, pay, print (or display on device) and use....the quotes around the word simple were intended!!!
User 187934 Photo


Senior Advisor
20,271 posts

This script will generate a random number from the array.
<?php
$chars = array(0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
$serial = '';
$max = count($chars)-1;
for($i=0;$i<20;$i++){
$serial .= (!($i % 5) && $i ? '-' : '').$chars[rand(0, $max)];
}
echo $serial ;
?>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2662913 Photo


Registered User
5 posts

Hey, thanks so much for the help! Much appreciated.....I'll give it shot.
Cheers

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.