Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Discount Code Miscalculation

Discount Code Miscalculation

Started by bumba000 on 3 Nov 2026, 5:32 PM · Views: 54

Results 1 to 3 of 3
3 Nov 2026, 5:32 PM
#1
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
862
Plugin Contributions:
0

Discount Code Miscalculation

Hi All. Running ZC 2.2.2 on PHP8.5. I have just set up a discount code that should only be applying to products of one category while not applying to any other category. Setting are...

Coupon settings are 10%, Per qualifying item, Allowed Products based on total of allowed products, is allowed for products on sales or special.

Restrictions settings are Top/All categories = Deny, Allowed category = Allow.

Cart Totals:

1 x allowed category item $159.80

1 x restricted category item $88.95

sub-total $248.75

shipping $9.95

discount -$16.51

total $242.19

3 Nov 2026, 7:11 PM
#2
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
862
Plugin Contributions:
0

Re: Discount Code Miscalculation

Ok. so this is pretty strange. First I tried using a test customer account and it wasn't coming out right. Now testing using a guest checkout and it's working fine.

4 Nov 2026, 10:24 AM
#3
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,327
Plugin Contributions:
41

Re: Discount Code Miscalculation

bumba000:

Ok. so this is pretty strange. First I tried using a test customer account and it wasn't coming out right. Now testing using a guest checkout and it's working fine.

Maybe the customer account has other discounts assigned?

~Melanie