magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.51k stars 9.31k forks source link

Cart price rule Action "Price in cart" condition, applying when It should not #36433

Open kenseiatwork opened 1 year ago

kenseiatwork commented 1 year ago

Preconditions and environment

Steps to reproduce

  1. Create a Cart Price Rule
  2. Set Specific Coupon Code (ex "TEST")
  3. Conditions : none
  4. Actions: Apply "Percent of product price discount"
  5. Discount Amount: 50
  6. Apply the rule only to cart items matching the following conditions : "Price in Cart" .. "Less than" .. "50"
  7. Create a Configurable product with simple products prices at $100
  8. Add a product to cart
  9. Attempt to add the "TEST" coupon in cart/checkout

Expected result

Coupon is rejected.

Actual result

Coupon is applied.

Additional information

Does not appear to affect "greater than" or "is" comparisons.

rule1

rule2

cart1

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @kenseiatwork. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Bravo commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo, here is your Magento Instance: https://47c80f36b0cb9fe80a1947c672714fb0.instances.magento-community.engineering Admin access: https://47c80f36b0cb9fe80a1947c672714fb0.instances.magento-community.engineering/admin_2a17 Login: 7ed93677 Password: c28036b3a8bc

engcom-Bravo commented 1 year ago

Hi @kenseiatwork,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop and 2.4.5 instances and the issue is reproducible on both the instances.Kindly refer the screenshots.

Steps to Reproduce :

1.Create a Cart Price Rule 2.Set Specific Coupon Code (ex "TEST") 3.Conditions : none 4.Actions: Apply "Percent of product price discount" 5.Discount Amount: 50 6.Apply the rule only to cart items matching the following conditions : "Price in Cart" .. "Less than" .. "50" 7.Create a Configurable product with simple products prices at $100 8.Add a product to cart 9.Attempt to add the "TEST" coupon in cart/checkout

As Per Cart Price Rule Coupon should not be applied if Price greater than 50, but it is applying.

Screenshot 2022-11-09 at 1 05 09 PM

It is Working Fine with Simple Product as Per Cart Price Rule.

Screenshot 2022-11-09 at 5 10 48 PM

Hence confirming the issue.

Thamks.

github-jira-sync-bot commented 1 year ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-6997 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 year ago

:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.