commerce_coupon will stay in contrib, but we want to design it now, and start implementing it.
We know that we want to have a 'coupon' promotion type, which adds a coupon_codes reference field to the promotion.
That way a coupon promotion references 1 or more coupon codes.
The coupon code has a backreference to the promotion, code, usage limit, status.
We need to design the coupon UI, which will be implemented as a custom widget for the coupon_codes field.
We need the ability to add/edit/remove individual coupon codes, or bulk generate them.
I was thinking of a Code | Usage limits table which has rows with editable fields (like the attribute value form).
In the bottom, an "Add new code" button and a "Bulk generate" button (which opens a small form that accepts params. Can we use a modal?)
Comments
Comment #2
mglamanWorking on the documentation and architecture here for and at Kelowna sprint: https://docs.google.com/document/d/1q3a8QZEXwPXYOiSQkVMU2vW82MXj9b188vL0...
Comment #3
mglamanWe will be putting the coupon entity in core, and all promotion bundles will have the ability to use coupons to add a level of application validation.
Comment #4
tamerzg commentedDo you have an ETA when we might see Commerce Coupons ready in Commerce 2.x? How stable is it now?
Comment #5
mglamanClosing this. We've gotten things fairly stable and have the final touches coming in (usages for coupons, etc.)