Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joelpittet created an issue. See original summary.

joelpittet’s picture

Assigned: joelpittet » Unassigned
Category: Feature request » Task
Issue summary: View changes
Issue tags: +commerce-sprint
FileSize
39.57 KB
35.31 KB
1.37 KB
joelpittet’s picture

Issue summary: View changes
FileSize
30.31 KB
joelpittet’s picture

Status: Active » Needs review
mglaman’s picture

+1 I like the short and sweet. Easier to comprehend.

jkuma’s picture

+1 less is more

jkuma’s picture

Status: Needs review » Reviewed & tested by the community
joelpittet’s picture

Status: Reviewed & tested by the community » Fixed

Thank you two.

  • joelpittet committed 7f53209 on 7.x-1.x
    Issue #2618270 by joelpittet, jkuma, mglaman: Consise compatibility...

Status: Fixed » Closed (fixed)

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

rszrama’s picture

Status: Closed (fixed) » Needs review

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

mdupree’s picture

@ 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 ?

rszrama’s picture

Undecided on the course of action - just needs a little more attention. : )

smccabe’s picture

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

smccabe’s picture

Title: Consise compatibility labels » Concise compatibility labels
thejacer87’s picture

changed "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

joelpittet’s picture

Status: Needs review » Needs work

@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?

thejacer87’s picture

Any takers on the wording? Is smccabe's wording correct then? i can post a patch for that if that's the correct terminology...

joelpittet’s picture

@thejacer87 I think that is a way forward for sure, we can iterate if someone has better but @smccabe is the best so far.

thejacer87’s picture

Here it is. @joelpittet, the change you made in the first patch:

-        '#title' => t('Compatibility with other discounts'),
+      '#title' => t('Discount compatibility'),

Must have got committed somewhere else, cuz the change was already made to the admin file. Am I crazy? Or is my patch ok?

thejacer87’s picture

Status: Needs work » Needs review
joelpittet’s picture

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.

Could 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

TechnoTim2010’s picture

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

smccabe’s picture

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

TechnoTim2010’s picture

No 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".

smccabe’s picture

Status: Needs review » Needs work

Works for me, I follow your reasoning, Jacer can you update the patch pretty plz

smccabe’s picture

thejacer87’s picture

so should the label be:

Compatibility with discounts already applied.
Compatibility with discounts already active.
Compatibility with discounts already activated.

thejacer87’s picture

Status: Needs work » Needs review
FileSize
2.89 KB

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

rszrama’s picture

Status: Needs review » Needs work

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

thejacer87’s picture

@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?

TechnoTim2010’s picture

Revisited 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

  • Any discount.
  • Any discount except the selected discount.
  • Only the selected discount.
  • No discounts.

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.

thejacer87’s picture

here's the patch with @TechnoTim2010 changes

edit: i'm an idiot, grab the patch from the next comment

Status: Needs review » Needs work

The last submitted patch, 33: commerce_discount_concise_compatibility-2618270-33.patch, failed testing.

thejacer87’s picture

rszrama’s picture

Status: Needs review » Needs work

This 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. ^_^

thejacer87’s picture

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

TechnoTim2010’s picture

Any discount except the selected discount(s).
Only the selected discount(s).

Covers it I think.

thejacer87’s picture

joelpittet’s picture

Assigned: Unassigned » rszrama

How's that @rszrama?

rszrama’s picture

Status: Needs review » Fixed

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

Status: Fixed » Closed (fixed)

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