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

Uncaught TypeError: utils.formatPriceLocale is not a function #35905

Closed
1 of 5 tasks
jorgb90 opened this issue Aug 10, 2022 · 6 comments
Closed
1 of 5 tasks

Uncaught TypeError: utils.formatPriceLocale is not a function #35905

jorgb90 opened this issue Aug 10, 2022 · 6 comments

Comments

@jorgb90
Copy link

jorgb90 commented Aug 10, 2022

Preconditions and environment

  • Magento 2.4.5

Steps to reproduce

  1. Navigate to a product, doesnt matter if its a simple, configurable or anything else.

Expected result

No JS error

Actual result

price-box.js:153 Uncaught TypeError: utils.formatPriceLocale is not a function
at $... (price-box.js:153:41)
at underscore.js:723:29
at Function.each (underscore.js:1335:17)
at $...reDrawPrices (price-box.js:148:15)
at $...reloadPrice (widget.js:132:25)
at HTMLDivElement.dispatch (jquery.js:5430:49)
at elemData.handle (jquery.js:5234:47)
at Object.trigger (jquery.js:8719:28)
at HTMLDivElement. (jquery.js:8797:30)
at Function.each (jquery.js:385:35)

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 Aug 10, 2022

Hi @jorgb90. 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

@jorgb90
Copy link
Author

jorgb90 commented Aug 10, 2022

This seems to also affect the cart and checkout..

[ERROR] Failed to load the "Magento_Tax/checkout/summary/subtotal" template requested by "block-totals.subtotal".

jquery.js:4050 jQuery.Deferred exception: Unable to process binding "if: function(){return !isTaxDisplayedInGrandTotal && isDisplayed() }"
Message: Unable to process binding "text: function(){return getValue() }"
Message: priceUtils.formatPriceLocale is not a function TypeError: Unable to process binding "if: function(){return !isTaxDisplayedInGrandTotal && isDisplayed() }"
Message: Unable to process binding "text: function(){return getValue() }"
Message: priceUtils.formatPriceLocale is not a function

@jorgb90
Copy link
Author

jorgb90 commented Aug 10, 2022

Mm solved it. Was not a core issue.

@jorgb90 jorgb90 closed this as completed Aug 10, 2022
@ssx
Copy link
Contributor

ssx commented Aug 18, 2022

@jorgb90: what was the issue? I've got the same on a project.

@verhaeghep
Copy link

@jorgb90: what was the issue? I've got the same on a project.

Module magento2-price-demical from lillik is the source of the problem. See: lillik/magento2-price-decimal#78

@ssx
Copy link
Contributor

ssx commented Aug 18, 2022

thanks @verhaeghep - it'll be the same for this project too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants