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.55k stars 9.32k forks source link

Magento using regular price instead of the special price when calculation tier price type discount #39167

Closed mohammedTBB closed 1 month ago

mohammedTBB commented 1 month ago

Preconditions and environment

Steps to reproduce

1- Create a simple producto 2- add a special price lower than the regular price 3- add a tier price Discount 4- check the product in the frontend

Example: product: 24-MB01 regular price: 255.36 special price: 202.84 Customer group price (tier price) Quantity: 2 , Price: Discount 25%

Expected result

Special price should be used to calculate the tier price and the final price.

Example: Sepcial price - tier price discount = final price 202.84 - 25% = 152,13$

Actual result

Regular price is ued to calculate the tier price and the final price.

Example: Regular price - tier price discount = final price 255.36 - 25% = 191,52$

image

Additional information

I think the tier price should be calculated based on the minimum price which in this case the special price.

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 month ago

Hi @mohammedTBB. 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:

m2-assistant[bot] commented 1 month 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 month ago

Hi @mohammedTBB,

Thanks for your reporting and collaboration.

As Per the Magento devdocs it looks like and expected behaviour of magento

Final Price will calculated as below.Regular price = Base price which we have created for a product.

Screenshot 2024-09-17 at 11 54 35

Kindly let us know if we are missing anything.

Thanks.

mohammedTBB commented 1 month ago

Hi @engcom-Bravo Based on the NOTE mentioned in the devdocs The final product price is calculated as the minimum relevant price

Should not the tier price be calculated based on the special price and not the original price because it is the minimum price in this case?

Thanks.

engcom-Bravo commented 1 month ago

Hi @mohammedTBB,

Thanks for your update.

As per the mentioned document final price will calculate based on the regular price(which we have created for the product) not on the special price and it is an expected behaviour of magento.

Please have a look on Magento devdocs https://experienceleague.adobe.com/en/docs/commerce-admin/catalog/products/pricing/product-price-special#testing

Thanks.

engcom-Bravo commented 1 month ago

Hi @mohammedTBB,

We have noticed that this issue has not been updated since long time.
Hence we assume that this issue is fixed now, so we are closing it. Please feel to raise a fresh ticket or reopen this ticket if you need more assistance on this.

Thanks