Skip to content

Commit fb7b16e

Browse files
committed
Enhance coupon creation initiated track parameters
1 parent 6859ac4 commit fb7b16e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCouponViewModel.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,11 @@ private extension AddEditCouponViewModel {
463463
"discount_type": coupon.discountType.rawValue,
464464
"has_expiry_date": coupon.dateExpires != nil,
465465
"includes_free_shipping": coupon.freeShipping,
466+
"has_description": coupon.description.isNotEmpty,
466467
"has_product_or_category_restrictions": coupon.excludedProductCategories.isNotEmpty || coupon.excludedProductIds.isNotEmpty,
467468
"has_usage_restrictions": (coupon.usageLimit ?? 0) > 0
469+
|| (coupon.limitUsageToXItems ?? 0) > 0
470+
|| (coupon.usageLimitPerUser ?? 0) > 0
468471
])
469472
}
470473

0 commit comments

Comments
 (0)