There's a UX problem right now with discounts defaulting to being active. Creating a discount is a fairly complex task that requires some testing and potential fiddling around to get right, especially if you add in other modules like Commerce Coupon or the need for editorial review. Having them default to active means as soon as they're first saved, they're now automatically applied to any order possibly being placed on the site.
One way to cut down accidental discounts would be to make all discounts disabled by default. This could create the opposite UX problem of people wondering how to quickly create new discounts that are active immediately (i.e. without having to find and toggle the status property), but this could be resolved by the addition of a new button or a drop button such as D8 uses to "Save and publish" or "Save unpublished" a new piece of content.
Any other thoughts?
Comment | File | Size | Author |
---|---|---|---|
#25 | commerce_discount-publishing_actions-2610612-25.patch | 9.86 KB | czigor |
| |||
#20 | commerce_discount-publishing_actions-2610612-17.patch | 9.83 KB | joelpittet |
#17 | 2610612-10-17-interdiff.diff | 3.36 KB | jkuma |
#17 | commerce_discount-publishing_actions-2610612-17.patch | 9.98 KB | jkuma |
Comments
Comment #2
jkuma CreditAttribution: jkuma as a volunteer commentedHello rszrama,
I totally agree with you, working on my last client project made me realize that we need to expose extra options to prevent direct publishing of a discount.
From my perspective, adding submit buttons such as "Save and publish" and "Save unpublished" seams to be a good start. If we are moving to that direction, we also want to git rid of "enable/disable" dropdown list because the action buttons will take care of that. Moreover, it would be nice to display the current discount status somewhere in the discount form (i mean, the discount edition form).
I'm assigning this issue to myself, will propose a patch soon.
Comment #3
jkuma CreditAttribution: jkuma as a volunteer commentedComment #4
rszrama CreditAttribution: rszrama at Centarro commentedThat's awesome, thanks Jonathan!
Comment #5
jkuma CreditAttribution: jkuma as a volunteer commentedHello guys,
Please find attached a first attempt to tackle this issue. I've updated both css and sass files (I'm not sure the sass files are still maintained).
Comment #7
jkuma CreditAttribution: jkuma as a volunteer commentedThe testing has failed, i'm updating the tests (the submit button id/name has changed).
Let me work on that.
@maintainers: In the meantime, may you test the new submit buttons and tell me what you think ?
Comment #8
jkuma CreditAttribution: jkuma as a volunteer commentedHello ryan,
I've updated my commit according to latest UI changes (the vertical tabs). The discount status is now clearly shown at page top and so i've removed the discount status options from the vertical tabs. The tests have normally been fixed, i'm encountering some troubles to run discount unit tests on my local machine.
Comment #10
jkuma CreditAttribution: jkuma as a volunteer commentedNew patch that aims to fix up unit tests.
Comment #11
jkuma CreditAttribution: jkuma as a volunteer commentedComment #12
joelpittetPulling strings, don't mind me...
Comment #13
joelpittetThis sounds a bit like it will leave the original discount live and save a draft, no? Maybe 'Save and unpublish' to be like the other one?
Try to avoid setting fixed widths in the CSS. It will reek a bit of havoc with other admin themes.
Comment #14
rszrama CreditAttribution: rszrama at Centarro commentedAlso, re: the unpublish language, we don't really publish / unpublish discounts. We activate / disable them based on the text we use for statuses elsewhere. We should make sure this is consistent.
Comment #15
mglaman+1 for changing to "Save and activate"
Comment #16
jkuma CreditAttribution: jkuma as a volunteer commentedThank you joelpittet, rszrama and mglaman,
I'll refactor the patch according to your observations.
Comment #17
jkuma CreditAttribution: jkuma as a volunteer commentedHey guys,
Here is an another attempt to solve this issue. I updated the action buttons' labels as following :
The discount status is displayed on top of the discount page hence the operator/administrator can clearly see discount current status.
Comment #18
nvahalik CreditAttribution: nvahalik at Centarro commentedThis patch will be impacted by #2600044: Merge Discount Date and Usage into Commerce Discount.
Comment #19
mglamanThis no longer applies because of #2600044: Merge Discount Date and Usage into Commerce Discount
Comment #20
joelpittetRe-roll
Comment #21
mglamanShouldn't this be removed, as it's now part of vertical tabs?
Comment #24
capellicInstead of disabling as default, which creates a crazy workflow, how about a configuration option for Discounts in general that says, "only allow access to this discount via a coupon or Giftcard." Something like that?
Comment #25
czigor CreditAttribution: czigor at Centarro commentedJust a reroll.