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

Tier price not updating product price on magento 2.4.5-p1 #36589

Open Areasx opened 1 year ago

Areasx commented 1 year ago

Preconditions and environment

Magento version 2.4.5-p1 fresh install

Steps to reproduce

Expected result

The product tier price is visualized instead of the base price

Actual result

The base price is not updated. However in the shopping cart the tier price is applied

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @Areasx. 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://7c3153bb77ac8144c5c8161c69e73273.instances.magento-community.engineering Admin access: https://7c3153bb77ac8144c5c8161c69e73273.instances.magento-community.engineering/admin_e7f4 Login: cce39f9c Password: d2023ecaee7b

engcom-Bravo commented 1 year ago

Hi @Areasx,

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

1.Create 2 simple products 2.Assign tier price to products if quantity > 100 3.Create 1 configurable product with the 2 simple products as childs 4.On product page select a quantity above 100

Screenshot 2022-12-12 at 3 22 47 PM Screenshot 2022-12-12 at 3 22 53 PM

As per Magento devdocs https://docs.magento.com/user-guide/v2.3/catalog/product-price-tier.html

Screenshot 2022-12-12 at 5 09 33 PM

Kindly go through with this document and please let us know if you are still facing any issue.

Kindly recheck the behavior on Magento 2.4-develop instance and elaborate steps to reproduce if the issue is still reproducible.

Thanks.

Areasx commented 1 year ago

Thank you for your quick answers. I probably failed to explain the problem. The problem is that if you set a quantity above the tier price (e.g. 150 pieces) the price does not change. In your first example if you set the quantity to 150 the price should become 50; in my installation it stays to 70

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://7c3153bb77ac8144c5c8161c69e73273.instances.magento-community.engineering Admin access: https://7c3153bb77ac8144c5c8161c69e73273.instances.magento-community.engineering/admin_41f3 Login: c5f37ea7 Password: 9b2fc8fe829b

engcom-Bravo commented 1 year ago

Hi @Areasx,

Thanks for your update.

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

As per magento devdocs

https://docs.magento.com/user-guide/v2.3/catalog/product-price-tier.html

Tier price will be applied in shopping cart.it displays a only message in product details page.

https://user-images.githubusercontent.com/51680745/207320321-80cc8b42-194f-4434-ac75-26f9c9384ee0.mov

Screenshot 2022-12-13 at 1 01 19 PM

Kindly go through with this document and please let us know if you are still facing any issue.

Thanks.

Areasx commented 1 year ago

Thank you again for your answer but your statement is not correct (at least up to version 2.3.6 that we are currently using). In our current version (2.3.6) when the quantity is modified above the tier price limit, the price of the product is updated (on product page). By ex. if I have a product with a price of 10 and a tier price option "buy 100 for 5" when the quantity is set to a number greater than 99 the price changes automatically (on product page) from 10 to 5. If you check the same documentation that you linked (https://docs.magento.com/user-guide/v2.3/catalog/pricing-advanced.html) there is a sentence that I quote "Advanced pricing data is synchronized with product pages. For example, if you update a tier price quantity, the system updates the value on the product page.", so it seems that the tier price is "dynamic". The same sentence is reported in the 2.4 documentation (https://experienceleague.adobe.com/docs/commerce-admin/catalog/products/pricing/pricing-advanced.html) but it refers to the Commerce version so it is not clear if the feature has been removed on pourpose on open source version.

engcom-Bravo commented 1 year ago

Hi @Areasx,

Thanks for your update.

In 2.3 documentation also the Advanced pricing refers to Commerce version and also we have the verified the issue in magento 2.4 develop with ee edition(Commerce) we are unable to reproduce the issue.It is working fine.

Screenshot 2022-12-15 at 5 13 05 PM

https://user-images.githubusercontent.com/51680745/207851308-e7ecb713-abda-4ea7-94ad-ba845cf696d6.mov

As per documentation Advanced pricing refers to Adobe Commerce.

Please let us know if you are still facing any issue.

Thanks.

Areasx commented 1 year ago

Thank you again for your answer but in your video you was in a simple product, the problem is in configurable product!

In our developer cleaned enviroment you can see the tier price on simple product works: http://ssm1.scatolesumisura.it/simple.html.

Instead, you can see the tier price on configurable product doesn't works: http://ssm1.scatolesumisura.it/configurabile.html. Infact:

I hope you can help me

error-tier-price-magento2

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://7c3153bb77ac8144c5c8161c69e73273.instances.magento-community.engineering Admin access: https://7c3153bb77ac8144c5c8161c69e73273.instances.magento-community.engineering/admin_9492 Login: 9167464e Password: 530017fedc6f

engcom-Bravo commented 1 year ago

Hi @Areasx,

Thanks for your Update.

Verified the issue on Magento 2.4-develop instance and the issue is reproducible..Kindly refer the attached video.

Steps to reproduce

1.Create 2 simple products 2.Assign tier price to products if quantity > 100 3.Create 1 configurable product with the 2 simple products as childs 4.On product page select a quantity above 100

Tier Price is not updating for Configurable Products in Product pages and Tier price is updating in shopping cart after adding the product in cart.

https://user-images.githubusercontent.com/51680745/208088388-687beef4-e25e-4473-94f0-c448719cfdd6.mov

Screenshot 2022-12-16 at 5 54 33 PM

For Simple Products Tier Price is updating in both product pages and cart.

https://user-images.githubusercontent.com/51680745/208088619-b63814ac-b646-458c-b961-d90d0680c7fb.mov

Hence confirming this issue.

Thanks.

github-jira-sync-bot commented 1 year ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-7451 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.

Vasudev-22 commented 1 year ago

@magento I am working on this

Scqualo71 commented 1 year ago

Any news? I have the same problem. I think it's a big problem for the customer experience because the customer is not sure of the product's price so I stopped upgrading my website.
Can you tell me the plan for bug fix and release kit?

Thanks

sheepfy commented 1 year ago

@engcom-Bravo I think it also applies the tier discount on the regular_price instead of the final price at: vendor/magento/module-catalog/Model/Product/Attribute/Backend/Tierprice.php line ~167 ( $object->getPrice() )

If you have a simple product with price of 158 and special price of 130 then 2 tier prices: 10% off for qty >= 10 20% off for qty >= 20

notice that only the second tier price is displayed because 10% off from 158 gives 142,2 which is greater than 130 (special price).

Hoszi commented 11 months ago

Hi! Do you have any update for this issue?