Coupons policies
Version:
The Commerce Engine encompasses extensible services that enable you to customize commerce functionality.
Note
Do not extend or inherit from out-of-the-box policies; instead, create your own. You can change the values in a policy by modifying the PolicySet JSON or the Environment JSON, depending on where the policy is defined and then re-running Bootstrap.
The following policies can be configured through the Coupons plug-in.
| Policy | Description | Properties / Default Values |
|---|---|---|
GlobalCouponsPolicy | Defines global settings for coupons.
| MaxCouponCodeLength \ 30 MaxCouponPrefixLength \ 10 MaxCouponSuffixLength \ 10 GeneratedCouponCodeLength \ 6 MaxNumberOfPrivateCoupons \ 1000 MinPrivateCouponTotal \ 1 MinAllocationCount \ 1 |
KnownCouponActionsPolicy | Defines the names of the coupon entity view actions. | AddCoupon \ "AddCoupon" RemoveCoupon \ "RemoveCoupon" AddPrivateCoupon \ "AddPrivateCoupon" AddPublicCoupon \ "AddPublicCoupon" NewAllocation \ "NewAllocation" DownloadCouponCodes \ "DownloadCouponCodes" |
KnownCouponsListsPolicy | Defines the names of the coupons transient and entity index lists. | PromotionCoupons \ "Promotions-{0}-Coupons" AllocatedCoupons \ "Promotion-{0}-AllocatedCoupons" UnallocatedCoupons \ "Promotion-{0}-UnallocatedCoupons" PublicCoupons \ "Promotion-{0}-PublicCoupons" PrivateCouponGroups \ "Promotion-{0}-PrivateCouponGroups" |
KnownCouponViewsPolicy | Defines the names of the coupons entity views. | PublicCoupons \ "PublicCoupons" PrivateCoupons \ "PrivateCoupons" CouponDetails \ "CouponDetails" Coupons \ "Coupons" AllocationDetails \ "AllocationDetails" Allocations \ "Allocations" |
LimitUsagesPolicy | Defines how many times a coupon can be use. | LimitCount \ 1 |
CartCouponsPolicy | Defines a policy for the CartCoupons component:
|
If you have suggestions for improving this article, let us know!