homepage Welcome to WebmasterWorld Guest from 107.20.109.52
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Ecommerce
Forum Library, Charter, Moderators: buckworks

Ecommerce Forum

    
Need to generate random coupon codes
Any coupon code generators out there?
RonSolo




msg:3410808
 7:00 pm on Aug 1, 2007 (gmt 0)

I'm looking for a small program or script (PHP) that will generate random alphanumeric coupon codes for our ecommerce site. Can anyone point me in the right direction?

Thanks,
Ron

 

Corey Bryant




msg:3410910
 8:22 pm on Aug 1, 2007 (gmt 0)

Did you check the contributions on osCommerce?

-Corey

RonSolo




msg:3410922
 8:39 pm on Aug 1, 2007 (gmt 0)

Hi Corey.
We already have our own site/system where we can create discount coupons, but we have to come up with our own code ID's. I'm looking for a small program or script that will simply generate random (alphanumeric) ID's for our coupons. Kind of like those Lottery number generators...

- Ron

Marshall




msg:3410927
 8:46 pm on Aug 1, 2007 (gmt 0)

Is this for people to use the coupon or for your records? You code generate a session ID for each coupon. I don't know the code for PHP, but in ASP it's

<% Response.Write(Session.SessionID) %>

Marshall

RonSolo




msg:3410944
 9:06 pm on Aug 1, 2007 (gmt 0)

As it is now, I create the coupon in our system to give out (or advertise) to our customers. The coupon ID is the "code" that the customer will enter to receive their discount. And, right now, I have to manually come up with the code ID every time I create a coupon. For example, "ABC123" is the ID for a coupon offering 10% off.

Sure...it's not a big deal to make these up myself. I was just curious if there was something out there to create an ID randomly.

- Ron

Gibble




msg:3410954
 9:24 pm on Aug 1, 2007 (gmt 0)

Just do a quick search for a password generator script, or alpha numeric generator script.

You should get tons of results.

RonSolo




msg:3410969
 9:37 pm on Aug 1, 2007 (gmt 0)

Thanks, Gibble!
You're right, there's quite a few. I should have been thinking "password" and not "coupon".

- Ron

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Ecommerce
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved