Gift Voucher - Post ID 253069
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
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
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
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
Not quite sure as at the moment...I'm researching number generating code....not much luck thus far....
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
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
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!!!
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 ;
?>
$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
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
Hey, thanks so much for the help! Much appreciated.....I'll give it shot.
Cheers
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.