Git Product home page Git Product logo

Comments (15)

m2-assistant avatar m2-assistant commented on June 18, 2024

Hi @aleneapen. Thank you for your report.
To speed up processing of this issue, 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:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 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.

from magento2.

m2-assistant avatar m2-assistant commented on June 18, 2024

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: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
  • 5. Add label Issue: Confirmed once verification is complete.
  • 6. Make sure that automatic system confirms that report has been added to the backlog.

from magento2.

aleneapen avatar aleneapen commented on June 18, 2024

@magento give me 2.4-develop instance

from magento2.

magento-deployment-service avatar magento-deployment-service commented on June 18, 2024

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

from magento2.

magento-deployment-service avatar magento-deployment-service commented on June 18, 2024

Hi @aleneapen, here is your Magento Instance: https://f8fd22f80ea4faaa323e4d586df0fa8c.instances-prod.magento-community.engineering
Admin access: https://f8fd22f80ea4faaa323e4d586df0fa8c.instances-prod.magento-community.engineering/admin_fdb3
Login: 8e65dffe
Password: 68751eaaf747

from magento2.

engcom-Bravo avatar engcom-Bravo commented on June 18, 2024

@magento give me 2.4-develop instance

from magento2.

magento-deployment-service avatar magento-deployment-service commented on June 18, 2024

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

from magento2.

magento-deployment-service avatar magento-deployment-service commented on June 18, 2024

Hi @engcom-Bravo, here is your Magento Instance: https://f8fd22f80ea4faaa323e4d586df0fa8c.instances-prod.magento-community.engineering
Admin access: https://f8fd22f80ea4faaa323e4d586df0fa8c.instances-prod.magento-community.engineering/admin_53ef
Login: 301ba636
Password: 20786fa664a5

from magento2.

engcom-Bravo avatar engcom-Bravo commented on June 18, 2024

Hi @aleneapen,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.

Steps to reproduce

Create the first cart price rule:
Rule Information:
Active: Yes
Coupon: Specific Coupon
Coupon Code: 50OFF
Priority: 0
Condition: None
Actions
Apply: Percent of product price discount
Discount Amount: 50%
Maximum Qty Discount is Applied To: 0
Discount Qty Step (Buy X): 0
Apply to Shipping Amount: No
Discard subsequent rules: Yes

Create the second cart price rule
Rule Information:
Active: Yes
Coupon: No Coupon
Priority: 1
Condition:
If trial SKU is in cart
Actions
Apply: Percent of product price discount
Discount Amount: 100%
Maximum Qty Discount is Applied To: 1
Discount Qty Step (Buy X): 0
Apply to Shipping Amount: Yes
Discard subsequent rules: Yes

Add to cart 2 products: first product = trial SKU, second product = non-trial SKU.
The second rule applies
Trial SKU price: $20
Non-trial SKU price: $100
Shipping: $10
Subtotal: $130
Discount: -$30.00

It is working fine here.

Screenshot 2023-09-13 at 3 23 46 PM

Apply Discount Code: 50OFF
The first rule is applied correctly but the second rule's shipping discount is applied incorrectly
Trial SKU price: $20
Non-trial SKU price: $100
Shipping: $10
Subtotal: $130
Discount: -$70

Screenshot 2023-09-13 at 3 24 20 PM

Here discount $70 is getting applied Could you please elaborate how discount should be $60.

Thanks.

from magento2.

aleneapen avatar aleneapen commented on June 18, 2024

Hi @engcom-Bravo,
here is my thinking:
the discount should be $60 because the second rule shipping discount shouldn't apply.

Since the first rule had priority = 0 and Discard subsequent rules: Yes, and Apply to shipping Amount = No
so the second rule shouldn't apply.

Is that the intended behaviour?

from magento2.

engcom-Bravo avatar engcom-Bravo commented on June 18, 2024

Hi @aleneapen,

Thanks for your update.

Here i have deactivated the second price rule it is working fine here.Discount is $60

Screenshot 2023-09-14 at 3 54 02 PM

As per the document https://experienceleague.adobe.com/docs/commerce-admin/marketing/promotions/cart-rules/price-rules-cart-create.html?lang=en#step-1%3A-add-a-rule

The Priority setting is important when two cart rules/coupon codes are valid for the same product at the same time. The rule with the highest Priority setting (1 being the highest) controls the cart action

When we are applying both cart price rules

Screenshot 2023-09-14 at 6 33 54 PM

As per devdocs second cart price rule should apply to product with 20$ with having priority 1 in that case total discount will be above $70 because it will give 100% discount.could you please check document and please let us know if we are missing anything and elaboarte the steps.

Thanks.

from magento2.

aleneapen avatar aleneapen commented on June 18, 2024

Hi @engcom-Bravo,
The documentation is unclear. 0 is higher priority than 1.

lower number in priority field = higher priority.
0 is the highest priority
image

Also see this comment on a similar issue: #27202 (comment)

So technically, the second rule (with priority = 1) shouldn't apply at all in our test case.

from magento2.

engcom-Bravo avatar engcom-Bravo commented on June 18, 2024

Hi @aleneapen,

Thanks for your update.

Verified the issue on Magento 2.4-develop instance and the issue is reproducible.kindly refer the screenshots.

Screenshot 2023-09-27 at 2 42 14 PM

Discount is applied as $70.As per the documentation https://experienceleague.adobe.com/docs/commerce-admin/marketing/promotions/cart-rules/price-rules-cart-create.html?lang=en#step-1%3A-add-a-rule cart price rule having high priority is should control action.Here second rule should not apply.

Hence Confirming the issue.

Thanks.

from magento2.

github-jira-sync-bot avatar github-jira-sync-bot commented on June 18, 2024

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

from magento2.

m2-assistant avatar m2-assistant commented on June 18, 2024

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

from magento2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.