Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Is there a limit on how many discount coupons I can create?

Is there a limit on how many discount coupons I can create?

Locked

Views: 1,620

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
17 Mar 2010, 6:33 PM
#1
tuckjuck avatar

tuckjuck

New Zenner

Join Date:
Mar 2010
Posts:
2
Plugin Contributions:
0

Is there a limit on how many discount coupons I can create?

Hi all,

I am using Zen Cart 1.3.8a.

I am wanting to implement a new scheme which will require issuing a lot of discount coupons to specific individuals.

Is there a limit on how many discount codes I can create? Or can I create an unlimited amount?

Cheers

17 Mar 2010, 7:34 PM
#2
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Is there a limit on how many discount coupons I can create?

You can create as many as the integer value within the database can handle. I think this is approximately 2,147,483,647.

Remember though that if you have hundreds, or even millions, your store needs to run through all of these to check that the discounts are valid, so try not to have 2 active ones, and thousands of disabled ones, as this will just slow your store's performance.

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

18 Mar 2010, 11:30 AM
#3
tuckjuck avatar

tuckjuck

New Zenner

Join Date:
Mar 2010
Posts:
2
Plugin Contributions:
0

Re: Is there a limit on how many discount coupons I can create?

Thanks for the response.

I think 2,147,483,647 is more than enough for what I want to use it for!

Thanks again.

Tuckjuck

20 Mar 2010, 5:33 AM
#4
aussiesapphire avatar

aussiesapphire

Zen Follower

Join Date:
Apr 2006
Posts:
114
Plugin Contributions:
0

Re: Is there a limit on how many discount coupons I can create?

Absolute:

You can create as many as the integer value within the database can handle. I think this is approximately 2,147,483,647.

Remember though that if you have hundreds, or even millions, your store needs to run through all of these to check that the discounts are valid, so try not to have 2 active ones, and thousands of disabled ones, as this will just slow your store's performance.

Absolute

Good point about not having too many to slow things down but I am having trouble deleting coupons once they are not needed anymore.

When I delete, it asks me to confirm, I say yes. Then it just makes them inactive. This happens whether they were inactive in the first place or not. I thought it may not want me to delete coupons which were still within the time period but the expiry date does not seem to make any difference either.

I want to start using more coupons but dont want to create a whole bunch that I cant delete later.

Any suggestions?

cheers
Leah

22 Mar 2010, 12:02 AM
#5
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Is there a limit on how many discount coupons I can create?

See, every day is a school day!

Just had a quick look at the code, and it never deletes the coupon, it will only ever disable them. I'm not sure if this has anything to do with the redeemed coupons and running reports. For example, it may be that if you actually delete the coupons, they then don't appear within a sales report.

You might want to test this on a demo site, and then delete out a coupon directly from the database, and see if this has any negative effects.

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

22 Mar 2010, 1:33 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Is there a limit on how many discount coupons I can create?

Discount Coupons are not fully deleted so that the code cannot be repeated "accidentally" or on "purpose" on a new Discount Coupon so that once a Discount Coupon has ben disabled or expired it is permanent ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!