Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / set mximum savings for a discount code

set mximum savings for a discount code

Views: 420

Results 1 to 4 of 4
05 Jan 2026, 01:35
#1
vmax avatar

vmax

New Zenner

Join Date:
Jun 2018
Location:
uk
Posts:
31
Plugin Contributions:
0

set mximum savings for a discount code

hi guys
is there a way to set the maximum saving or maximum order for a coupn code

for example if i offer 25% off for new cuistomers can i either set it to maximum order of £200 for example or set a maximum saving to say £50 so that of they were to spend £1000 on first order they wouldnt save more than the set amount of £50 ( or what ever) but if they only spent for eample £10 then it would just discount 25% as normal ( £2.50 off on a £10 order)

hiope that makes sense
i want to offer new customers an i9ncentive but dont want to be giving £100's away on a first order if they try to take advantage

05 Jan 2026, 02:27
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,760
Plugin Contributions:
9

Re: set mximum savings for a discount code

You would need to modify the includes/modules/order_total/ot_coupon.php file and add a field to the coupons table.

The functions for the operation would need to be rewritten as well.

A fairly daunting task unless you really know your way around PHP development.

As an option, you can apply coupons with specific values to specific categories or products using the Restrictions button in Admin > Discounts > Coupon Admin. That may work until you can find someone to work with you on a mod.

05 Jan 2026, 13:01
#3
vmax avatar

vmax

New Zenner

Join Date:
Jun 2018
Location:
uk
Posts:
31
Plugin Contributions:
0

Re: set mximum savings for a discount code

Thankyou for your reply

Unfortunately the suggest of specific value coupons wouldnt work as we have given away literally 100’s of businesses cards with 25% off coupon on so it needs to be a percentage discount and cover all products on the site

I can edit php on a very basic level with clear instructions but something like this is a million miles above me

05 Jan 2026, 13:51
#4
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,768
Plugin Contributions:
20

Re: set mximum savings for a discount code

vmax:

I can edit php on a very basic level with clear instructions but something like this is a million miles above me

Are you willing to thoroughly test the modifications if I provide you with a working solution? If so, PM me and I'll send you the instructions.

I find the idea very interesting and if testing goes well, I'll PR - might be a welcome feature in Zen Cart.