Page 1 of 1

Generating Gift Certificate Numbers (Bulk)

Posted: Mon Mar 07, 2011 10:54 am
by okabashi
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

Re: Generating Gift Certificate Numbers (Bulk)

Posted: Thu Mar 10, 2011 10:21 am
by plugables
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.