Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 5 tasks
Areasx opened this issue Dec 9, 2022 · 24 comments
Open
1 of 5 tasks

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

Areasx opened this issue Dec 9, 2022 · 24 comments
Assignees
Labels
Area: Pricing Component: ConfigurableProduct Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: dev in progress Reported on 2.4.5-p1 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch

Comments

@Areasx
Copy link

Areasx commented Dec 9, 2022

Preconditions and environment

Magento version 2.4.5-p1 fresh install

Steps to reproduce

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

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

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
@m2-assistant
Copy link

m2-assistant bot commented Dec 9, 2022

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

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

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.


⚠️ 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.

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

@m2-assistant
Copy link

m2-assistant bot commented Dec 9, 2022

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

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components 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.

@engcom-Bravo engcom-Bravo added the Reported on 2.4.5-p1 Indicates original Magento version for the Issue report. label Dec 9, 2022
@engcom-Bravo
Copy link
Contributor

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

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

@magento-deployment-service
Copy link

@engcom-Bravo
Copy link
Contributor

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.

@engcom-Bravo engcom-Bravo added the Issue: needs update Additional information is require, waiting for response label Dec 12, 2022
@engcom-Bravo engcom-Bravo added the Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch label Dec 12, 2022
@Areasx
Copy link
Author

Areasx commented Dec 12, 2022

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
Copy link
Contributor

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

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

@magento-deployment-service
Copy link

@engcom-Bravo
Copy link
Contributor

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.

Screen.Recording.2022-12-13.at.1.01.34.PM.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
Copy link
Author

Areasx commented Dec 13, 2022

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
Copy link
Contributor

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

Screen.Recording.2022-12-15.at.5.15.43.PM.mov

As per documentation Advanced pricing refers to Adobe Commerce.

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

Thanks.

@Areasx
Copy link
Author

Areasx commented Dec 15, 2022

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:

  • In my example I setup a configurable product with associate some simple products
  • I setup the tier price quantity to 100 in the simple product with this attributes color = blu and dimensioni_axbxh = 5x5x5 so above 100 pieces I expected the configurable product's price will have to go down from 10$ to 5$
  • I put the quantity to 120 pieces but the price on the product's page doesn't change

I hope you can help me

error-tier-price-magento2

@engcom-Bravo
Copy link
Contributor

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

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

@magento-deployment-service
Copy link

@engcom-Bravo
Copy link
Contributor

engcom-Bravo commented Dec 16, 2022

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.

Screen.Recording.2022-12-16.at.4.02.03.PM.mov

Screenshot 2022-12-16 at 5 54 33 PM

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

Screen.Recording.2022-12-15.at.5.15.43.PM.mov

Hence confirming this issue.

Thanks.

@engcom-Bravo engcom-Bravo removed Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch Issue: needs update Additional information is require, waiting for response labels Dec 16, 2022
@github-jira-sync-bot
Copy link

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

@m2-assistant
Copy link

m2-assistant bot commented Dec 16, 2022

✅ 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
Copy link
Contributor

@magento I am working on this

@engcom-Hotel engcom-Hotel added the Priority: P2 A defect with this priority could have functionality issues which are not to expectations. label Dec 20, 2022
@Scqualo71
Copy link

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
Copy link
Contributor

sheepfy commented Mar 22, 2023

@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
Copy link

Hoszi commented Nov 21, 2023

Hi!
Do you have any update for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Pricing Component: ConfigurableProduct Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: dev in progress Reported on 2.4.5-p1 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch
Projects
Status: Dev In Progress
Development

No branches or pull requests

8 participants