Skip to content
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

Rollback MAGETWO-96403 as it was closed as "NOT A BUG" #26392

Closed

Conversation

justinharris1986
Copy link

@justinharris1986 justinharris1986 commented Jan 15, 2020

Description (*)

See #24422
Cannot enable "Apply to shipping amount" when you Apply "Fixed amount discount for whole cart"
It should be possible according to documentation (https://docs.magento.com/m2/ce/user_guide/marketing/price-rules-cart-create.html):
Fixed amount discount for whole cart: Discounts the entire cart by subtracting a fixed amount from the cart total. For example: Enter 10 in Discount Amount to subtract $10 from the cart total.By default, the discount applies only to the cart subtotal. To apply the discount to the subtotal and shipping separately, see Apply to Shipping Amount.

According to the notes There was a ticket, MAGETWO-96403, that was closed as "NOT A BUG", however, some parts of the code made it in to the code base

Fixed Issues

  1. "Apply discount to Shipping Amount" disabled for "Fixed amount discount for whole cart" action #24422: "Apply discount to Shipping Amount" disabled for "Fixed amount discount for whole cart" action

Manual testing scenarios

From the Adminhtml:

  1. Go to admin panel -> Marketing -> Cart Price Rules -> Add new rule
  2. In Actions tab and set Apply to "Fixed amount discount for whole cart"
  3. Set a coupon code, and set the fixed amount to a value, say $10
  4. Create a flat rate shipping rate equal to __DIR__ Typo fixed #3, above. In my example $10
  5. Create a product LESS with a price LESS THAN __DIR__ Typo fixed #3, above. Example: $5

From the front end:

  1. add product to cart
  2. Add coupon code to cart or checkout page.
  3. Total should now equal price of product, $5, NOT the price of shipping

Questions or comments

There were several other test cases included with this commit that appeared to be cleanup. I have left those, but will test to see if any of them now fail. Any insight on these is appreciated.

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 are green)

Resolved issues:

  1. resolves [Issue] Rollback MAGETWO-96403 as it was closed as "NOT A BUG" #29619: Rollback MAGETWO-96403 as it was closed as "NOT A BUG"

@m2-assistant
Copy link

m2-assistant bot commented Jan 15, 2020

Hi @justinharris1986. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@justinharris1986
Copy link
Author

@magento-engcom-team give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @justinharris1986. Thank you for your request. I'm working on Magento instance for you

@magento-engcom-team
Copy link
Contributor

Hi @justinharris1986, here is your new Magento instance.
Admin access: https://pr-26392.instances.magento-community.engineering/admin
Login: admin Password: 123123q

@justinharris1986
Copy link
Author

There are some UI Tweaks that should be updated. I will close and re-open once all the checks run so I know they pass for the 2nd round of revisions

@m2-assistant
Copy link

m2-assistant bot commented Jan 15, 2020

Hi @justinharris1986, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@justinharris1986
Copy link
Author

In regards to the two checks that fail:

Functional Tests EE

It looks like this is something other than this update:
CSS or XPath element with '//div[@class='filter-options-title' and contains(text(), 'Category')]' was not found.

Static Tests

Not sure about this one, It is part of a file that has been updated, however, I only updated a test value, not class descriptions. Need some direction here on where/what needs to be updated.

----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 19 | WARNING | Class description should contain additional
    |         | information beyond the name already supplies.
----------------------------------------------------------------------

@sidolov
Copy link
Contributor

sidolov commented Aug 17, 2020

@magento create issue

@sidolov sidolov added Priority: P3 May be fixed according to the position in the backlog. Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround. labels Aug 17, 2020
@sidolov
Copy link
Contributor

sidolov commented Sep 17, 2020

@justinharris1986 I'm closing this pull request since the issue mentioned in the description has been already fixed.

@sidolov sidolov closed this Sep 17, 2020
@m2-assistant
Copy link

m2-assistant bot commented Sep 17, 2020

Hi @justinharris1986, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@ghost ghost removed this from Pending Review in Pull Requests Dashboard Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: P3 May be fixed according to the position in the backlog. Progress: pending review Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Issue] Rollback MAGETWO-96403 as it was closed as "NOT A BUG"
4 participants