Zen Cart Logo

Coupon restrictions, confusion.

Views: 1,798

Results 1 to 4 of 4
23 Feb 2023, 5:18 PM
#1
lat9 avatar

lat9

Administrator

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

Coupon restrictions, confusion.

zc158a (now-current GitHub versions), PHP 8.2. Demo products installed.

Created a discount coupon with a restriction on the "Graphics Cards" category (Allow) and a product restriction to allow the "Microsoft IntelliMouse Explorer" product which isn't in that category.

I was thinking (apparently incorrectly) that that would create a coupon that was restricted to all products in "Graphics Cards" as well as that single product. I then added "Lethal Weapon Linked" (a product that is neither in that allowed category nor that allowed product) and the restricted coupon provided its discount during checkout.

Am I just not understanding how the coupon restrictions work or is this a bug?

23 Feb 2023, 5:25 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Coupon restrictions, confusion.

Please post a screenie of the coupon restrictions edit screen.

23 Feb 2023, 5:43 PM
#3
lat9 avatar

lat9

Administrator

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

Re: Coupon restrictions, confusion.

Attachment 20217

Screenshot provided, per request.

23 Feb 2023, 10:19 PM
#4
lat9 avatar

lat9

Administrator

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

Re: Coupon restrictions, confusion.

OK, the underlying issue (besides not doing the RTFM), was that the current zc158(a) GitHub when creating a restricted coupon no longer gave the option to deny/allow ***all ***products since the 'Top' category was no longer displayed.

The issue is described in this (https://github.com/zencart/zencart/issues/5625) Zen Cart issue, with a correction currently provided via PR.