Skip to content

Fix missing discount label in checkout #11883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

allanwebjump
Copy link

@allanwebjump allanwebjump commented Oct 30, 2017

Description

The discount label was not being shown in the shopping cart totals description

Fixed Issues

  1. Discount Rule does not show Default Rule Label #11497: Discount Rule does not show Default Rule Label
  2. Cart Price Rule Label is not working #11428: Cart Price Rule Label is not working

Manual testing scenarios

  1. Add a discount to quote
  2. Go to the shopping cart and now see the discount label in the totals description

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Oct 30, 2017

CLA assistant check
All committers have signed the CLA.

@okorshenko okorshenko self-assigned this Oct 30, 2017
@okorshenko okorshenko added this to the October 2017 milestone Oct 30, 2017
@okorshenko okorshenko added Release Line: 2.2 2.2.x Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Oct 30, 2017
@okorshenko okorshenko modified the milestones: October 2017, November 2017 Nov 1, 2017
@okorshenko
Copy link
Contributor

Hi @allanwebjump Thank you for your contribution.
We tested 4 use cases for your fix:
Precondition:
Create a product with the price $500. Add product to the cart

Use Case 1

  1. Create cart price rule 1 with the following configuration:
  • No coupon
  • No labels
  • Condition: 2 items in the cart
  • Action: -50%
  1. Add 2 products to the cart

rule1

Use Case 2

  1. Create cart price rule 2 with the following configuration:
  • No coupon
  • Label: 3 items - 50%
  • Condition: 3 items in the cart
  • Action: -50%
  1. Add 3 products to the cart
    rule2

Use Case 3

  1. Create cart price rule 3 with the following configuration:
  • Coupon code: 4products
  • No label
  • Condition: 4 items in the cart
  • Action: -75%
  1. Add 4 products to the cart
    rule3

Use Case 4

  1. Create cart price rule 4 with the following configuration:
  • Coupon code: 5products
  • Label: five products - 75%
  • Condition: 5 items in the cart
  • Action: -75%
  1. Add 5 products to the cart
    rule4

❌ The Rule label is rendered twice

Could you please fix the Use case 4 so that we can accept this pull request?
Thank you

@okorshenko
Copy link
Contributor

Hi @allanwebjump
please let me know if you would like to proceed with this PR

@ihor-sviziev
Copy link
Contributor

Actually as a small fix we could just do following change in CSS:

.totals .discount.coupon {
    display: none;
}

@okorshenko
Copy link
Contributor

Hi @allanwebjump
We are closing this PR for now. Please reopen it once ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Progress: accept Progress: needs update Release Line: 2.2 Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants