Generating Gift Certificate Numbers (Bulk)

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
okabashi
Ensign (ENS)
Ensign (ENS)
Posts: 1
Joined: Wed Aug 06, 2008 3:46 pm

Generating Gift Certificate Numbers (Bulk)

Post by okabashi » Mon Mar 07, 2011 10:54 am

We would like to generate 10,000 Gift Certificates printed for a promotion. I was wondering if anyone has experience with auto-generating gift certificates. For each gift certificate, here's what I think it would look like in the database table:

ac_GiftCertificates.SerialNumber unique using the logarithm that the site uses to generate them
ac_GiftCertificates.Created_UserId = 1
ac_GiftCertificates.Name = Specific to partner “Group Discount March 2011” for example.
ac_GiftCertificates.CreateDate = Now()
ac_GiftCertificates.ExpirationDate = Now() + 50 years
ac_GiftCertificates.Balance = $25, but could be different based on partner.

Any ideas?

Or could you let me know how they are generated (logarithm, algorithm, etc.) that is used so that I can generate externally and then import to the table ac_GiftCertificates?

Thanks,
Andrew

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Generating Gift Certificate Numbers (Bulk)

Post by plugables » Thu Mar 10, 2011 10:21 am

I think you should be able to use AbleCommerce API to generate the gift certificates without the need to know the algorithm they are using to generate them.

Post Reply