Blog posts of '2023' 'January'

RSS
Check if the customer used a coupon code,- Saturday, January 7, 2023

To check if the customer used a coupon code, you could use one of these examples:

 Customer.HasDiscountCouponCode("freeshipping")

 Customer.AppliedDiscountCouponCodes().Contains("freeshipping"))

 Customer.AppliedDiscountCouponCodes().Any()

Comments (2)