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

bojanz created an issue. See original summary.

mglaman’s picture

Assigned: Unassigned » mglaman

Working on the documentation and architecture here for and at Kelowna sprint: https://docs.google.com/document/d/1q3a8QZEXwPXYOiSQkVMU2vW82MXj9b188vL0...

mglaman’s picture

Component: DIscount » Promotions

We 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.

tamerzg’s picture

Do you have an ETA when we might see Commerce Coupons ready in Commerce 2.x? How stable is it now?

mglaman’s picture

Status: Active » Fixed

Closing this. We've gotten things fairly stable and have the final touches coming in (usages for coupons, etc.)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.