Comments (15)
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:
@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.
Join Magento Community Engineering Slack and ask your questions in #github channel.
🕙 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.
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
branchDetails
- Add the comment@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-develop
branch, please, add the labelReproduced 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.
@magento give me 2.4-develop instance
from magento2.
Hi @aleneapen. Thank you for your request. I'm working on Magento instance for you.
from magento2.
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.
@magento give me 2.4-develop instance
from magento2.
Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.
from magento2.
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.
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.
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
Here discount $70 is getting applied Could you please elaborate how discount should be $60.
Thanks.
from magento2.
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.
Hi @aleneapen,
Thanks for your update.
Here i have deactivated the second price rule it is working fine here.Discount is $60
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
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.
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
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.
Hi @aleneapen,
Thanks for your update.
Verified the issue on Magento 2.4-develop instance and the issue is reproducible.kindly refer the screenshots.
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.
✅ Jira issue https://jira.corp.adobe.com/browse/AC-9612 is successfully created for this GitHub issue.
from magento2.
✅ 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)
- [Issue] Static content deploy - Type error HOT 8
- [Issue] S3 incorrect option name (path-style) HOT 6
- Braintree error : Exception message: Your payment could not be taken. Please try again or use a different payment method. Declined Trace: HOT 4
- Price is always 0 for bundle product items without dynamic price in order rest API HOT 5
- Can not print order invoice since upgrade to 2.4.7 HOT 3
- Upgrading from 2.4.6-p5 to 2.4.7 not compiling HOT 10
- Export Report Generator HOT 7
- Autoplay not working for YouTube and Vimeo videos. HOT 6
- Adding URL rewrites with an accent causes infinite loading HOT 12
- [Issue] Sales rule CartFixed calculation : incorrect discount amount HOT 15
- [Issue] set image rolls only if is_required is true HOT 12
- Kazakh Locale missing in Config.php HOT 1
- [Feature request] Single file uploader should be available globally as product attribute HOT 1
- Can't login to admin backend, since new security patch 2.4.4-p8 HOT 5
- Negative Salable quantity HOT 8
- Admin: Page Actions Buttons floating left instead of right HOT 10
- Something went wrong with processing the default view and we have restored the filter to its original state. HOT 12
- Default Product Attribute Settings Issue HOT 18
- DI compile failure after 2.4.4-p8 update HOT 13
- Seem reindexing is Flusing magento page cache HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2.