We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6859ac4 commit fb7b16eCopy full SHA for fb7b16e
WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCouponViewModel.swift
@@ -463,8 +463,11 @@ private extension AddEditCouponViewModel {
463
"discount_type": coupon.discountType.rawValue,
464
"has_expiry_date": coupon.dateExpires != nil,
465
"includes_free_shipping": coupon.freeShipping,
466
+ "has_description": coupon.description.isNotEmpty,
467
"has_product_or_category_restrictions": coupon.excludedProductCategories.isNotEmpty || coupon.excludedProductIds.isNotEmpty,
468
"has_usage_restrictions": (coupon.usageLimit ?? 0) > 0
469
+ || (coupon.limitUsageToXItems ?? 0) > 0
470
+ || (coupon.usageLimitPerUser ?? 0) > 0
471
])
472
}
473
0 commit comments