Zen Cart Logo
Forums / Bug Reports / Coupon Based discount

Coupon Based discount

Views: 4,169

Results 1 to 4 of 4
29 Nov 2019, 14:24
#1
gtgeorge avatar

gtgeorge

New Zenner

Join Date:
Mar 2005
Posts:
53
Plugin Contributions:
0

Coupon Based discount

ZC 1.56C

I have also noticed this anomaly on earlier versions as well and consider it an error in calculation.

We offer a discount coupon code and when doing so the ZC calculates the discount percentage on the total including shipping as well as counting shipping towards the minimum order percentage. This should not be the case and should calculate minimum and also apply the discount to the subtotal before shipping.

29 Nov 2019, 14:58
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Coupon Based discount

That's a known issue for current Zen Cart releases, with changes 'staged' on GitHub for zc157 and a possible zc156d release.

If you're running a version of zc1.5.6, you can replace the contents of your store's /includes/modules/order_total/ot_shipping.php (after making a backup!) with the module's updated contents: https://raw.githubusercontent.com/zencart/zencart/v156/includes/modules/order_total/ot_shipping.php

That change will probably work for zc1.5.5 versions, too, but I haven't tested to verify.

29 Nov 2019, 17:41
#3
gtgeorge avatar

gtgeorge

New Zenner

Join Date:
Mar 2005
Posts:
53
Plugin Contributions:
0

Re: Coupon Based discount

Thanks, I will give the later files a try as time permits on a test site. It will be great if they work as intended with 1.56c.

29 Nov 2019, 18:14
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Coupon Based discount

gtgeorge:

Thanks, I will give the later files a try as time permits on a test site. It will be great if they work as intended with 1.56c.
The update in that link I posted will work with zc156c.