Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up to #2557119: Allow discounts to indicate compatibility with other discounts
A usability touch-up to #2557119: Allow discounts to indicate compatibility with other discounts
Before
After
Comment | File | Size | Author |
---|---|---|---|
#39 | commerce_discount_concise_compatibility-2618270-39.patch | 2.79 KB | thejacer87 |
| |||
#37 | commerce_discount_concise_compatibility-2618270-37.patch | 2.66 KB | thejacer87 |
| |||
#3 | after.png | 30.31 KB | joelpittet |
#2 | 2618270-2.patch | 1.37 KB | joelpittet |
#2 | before.png | 39.57 KB | joelpittet |
Comments
Comment #2
joelpittetComment #3
joelpittetComment #4
joelpittetComment #5
mglaman+1 I like the short and sweet. Easier to comprehend.
Comment #6
jkuma CreditAttribution: jkuma as a volunteer commented+1 less is more
Comment #7
jkuma CreditAttribution: jkuma as a volunteer commentedComment #8
joelpittetThank you two.
Comment #11
rszrama CreditAttribution: rszrama at Centarro commentedI understand I got a bit busy 3 months ago as we started to negotiate the CG acquisition, but I think we should revisit this as it was clear in IRC last week that these settings were misunderstood when the labels were proposed. I actually find the new labels lend themselves more to confusion than the old, which is probably why Joel had a hard time understanding them... or at least we should've made sure everyone understood the field and its impact before shortening them.
In doing so, we can also add some help text that makes it clear the compatibility checks are performed in sequence, first checking the compatibility requirements of discounts already added to an order and then checkout the requirements of the current discount itself. Note that this setting is in a vertical tab now, so concision isn't as essential as it was before.
Comment #12
mdupree CreditAttribution: mdupree commented@ rszrama - So are we wanting to revert back to the old messages and add some help text to better clarify the rules for discount compatibility ?
Comment #13
rszrama CreditAttribution: rszrama at Centarro commentedUndecided on the course of action - just needs a little more attention. : )
Comment #14
smccabe CreditAttribution: smccabe as a volunteer and at Acro Commerce commentedTook a shot at trying to make it more clear and concise
Compatibility with already applied discounts
Discounts are applied in order of their weight, discounts compatibility only applies to discounts that have already been applied, not discounts that will be applied after this. When setting up compatibility remember to consult your discounts weighting.
Any already applied discount
Any already applied discount except for the selected discount
Only the selected already applied discounts
No already applied discounts
*possibly switch to "lower weighted discount" although I thought that was hard to follow when visualizing the checkout.
Comment #15
smccabe CreditAttribution: smccabe as a volunteer and at Acro Commerce commentedComment #16
thejacer87 CreditAttribution: thejacer87 at Acro Commerce commentedchanged "already applied" to active to be even more concise. and some other words
Any active discount
Any active discount except the selected discounts
Only the active selected discounts
Not with any discounts
Comment #17
joelpittet@thejacer87 the 'already applied' is more accurate because it doesn't evaluate against discounts that are going to be checked next. Any other suggestions to capture this?
Comment #18
thejacer87 CreditAttribution: thejacer87 at Acro Commerce commentedAny takers on the wording? Is smccabe's wording correct then? i can post a patch for that if that's the correct terminology...
Comment #19
joelpittet@thejacer87 I think that is a way forward for sure, we can iterate if someone has better but @smccabe is the best so far.
Comment #20
thejacer87 CreditAttribution: thejacer87 at Acro Commerce commentedHere it is. @joelpittet, the change you made in the first patch:
Must have got committed somewhere else, cuz the change was already made to the admin file. Am I crazy? Or is my patch ok?
Comment #21
thejacer87 CreditAttribution: thejacer87 at Acro Commerce commentedComment #22
joelpittetCould you find a spot to add this in there as well from #14.
The patch looks fine. I'm not sure on the 'Discount compatibility' change you asked about in #20
Comment #23
TechnoTim2010 CreditAttribution: TechnoTim2010 as a volunteer commentedHi Just saw this issue, perhaps I can help, clean up the english and make it more concise but understandable.
Compatibility with discounts already applied.
Discounts are applied in order of their weight, discount compatibility only applies to active discounts, not discounts that will be applied later. When setting up compatibility remember to consult your discount's weighting.
Any active discount.
Any active discount except the selected discount.
Only the selected active discount.
No active discounts.
I hope that helps.
Comment #24
smccabe CreditAttribution: smccabe as a volunteer and at Acro Commerce commentedHey Tim,
I'm up for any tweakin, but it isn't just active discounts, it is literally only active discounts that are ALREADY active on the order, if another one gets added on right after, that doesn't count, the weighting is very important, which is what i was trying to convey.
Comment #25
TechnoTim2010 CreditAttribution: TechnoTim2010 as a volunteer commentedNo worries
Attempt #2
Discounts are applied in order of their weight, discount compatibility only applies to already active discounts, not discounts that will be applied later. When setting up compatibility remember to consult your discount's weighting.
Any already active discount.
Any already active discount except the selected discount.
Only the selected already active discount.
No already active discounts.
"Already active" is more sensible than "already applied" allowing use of applied in the description as a verb (sorry a bit english teacherish but better english) "Active" is quite common usage in drupal as in "a commerce product is active".
Comment #26
smccabe CreditAttribution: smccabe as a volunteer and at Acro Commerce commentedWorks for me, I follow your reasoning, Jacer can you update the patch pretty plz
Comment #27
smccabe CreditAttribution: smccabe as a volunteer and at Acro Commerce commentedComment #28
thejacer87 CreditAttribution: thejacer87 at Acro Commerce commentedso should the label be:
Compatibility with discounts already applied.
Compatibility with discounts already active.
Compatibility with discounts already activated.
Comment #29
thejacer87 CreditAttribution: thejacer87 at Acro Commerce commentedok here's the patch. went with Compatibility with discounts already applied. for the label. This patch requires you to run and update as that appears to be the only way to reset the field's label and add the description.
Comment #30
rszrama CreditAttribution: rszrama at Centarro commentedIn the Discount UI I purposefully avoided talking about "weight" in favor of "sort order." Weight just has mixed connotations in eCommerce, but it's also not user friendly to non-developers. Let's fix that and also change the quotation type in the description so we don't have an escape character in a translatable string.
I'm also not 100% on the idea of "active" discounts being used as shorthand for "already applied." Discounts have a status, and an active discount is one whose status is active, not more specifically one whose status is active that has already been applied to a product or order.
Comment #31
thejacer87 CreditAttribution: thejacer87 at Acro Commerce commented@rszrama, was smccabe's description better then? should "Discounts are applied in order of their weight," be "Discounts are applied in the order they are sorted," or something like that?
Comment #32
TechnoTim2010 CreditAttribution: TechnoTim2010 as a volunteer commentedRevisited it as was still in my issues queue and have a bit of time on my hands to contribute/
Taking @rszrama's comments on board
The choices referred to in the options are for discounts already active and applied.
so the heading would I think be
Compatibility with discounts already active and applied.
The options can then be quite simple
That makes sense, I think it is as unambiguous as you can get it, though I wonder if there is an option of adding a description that elaborates on the meaning of "discounts already active and applied" just to remove all doubt.
Comment #33
thejacer87 CreditAttribution: thejacer87 at Acro Commerce commentedhere's the patch with @TechnoTim2010 changes
edit: i'm an idiot, grab the patch from the next comment
Comment #35
thejacer87 CreditAttribution: thejacer87 at Acro Commerce commented:)
Comment #36
rszrama CreditAttribution: rszrama at Centarro commentedThis proposal loses some precision. The second and third options support multiple selected discounts. I'll also need to compare it against the originals - can't remember 'em off the top of my head. ^_^
Comment #37
thejacer87 CreditAttribution: thejacer87 at Acro Commerce commented@rszrama the original text is in the photo at the top of the issue. or are you talking about something else?
made the discounts plural, and changed weight to sort order in the description.
Comment #38
TechnoTim2010 CreditAttribution: TechnoTim2010 as a volunteer commentedAny discount except the selected discount(s).
Only the selected discount(s).
Covers it I think.
Comment #39
thejacer87 CreditAttribution: thejacer87 at Acro Commerce commentedcovered!
Comment #40
joelpittetHow's that @rszrama?
Comment #41
rszrama CreditAttribution: rszrama at Centarro commentedRevisiting this issue as I address #2916628: Update the labels of the compatibility radios to clarify compatibility scope. Rereading the thread, I see the proposed help text is actually inaccurate ... discount compatibility does govern whether or not discounts can apply on top of existing discounts. (e.g. if the first discount applied to an order says it is not compatible with any other discount, no other discount will be able to apply to the order.)
That said, since we've also had to reduce the scope of compatibility checks to discounts of the same type, the labels would need to be updated once again ... and I think it reflects more than just making them concise as this issue originally intended. When I reopened this, that wasn't the case, but I'm going to go ahead and close it now and approach it with a "clean slate" mindset given we need a more holistic update here if that's alright.