Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

formatPrice doesn't work with custom decimal separator #5018

Closed
dinhtungdu opened this issue Oct 28, 2021 · 0 comments · Fixed by #5188
Closed

formatPrice doesn't work with custom decimal separator #5018

dinhtungdu opened this issue Oct 28, 2021 · 0 comments · Fixed by #5188
Assignees
Labels
type: bug The issue/PR concerns a confirmed bug.

Comments

@dinhtungdu
Copy link
Member

dinhtungdu commented Oct 28, 2021

To reproduce

Steps to reproduce the behavior:

  1. Go to WooCommerce > Settings.
  2. Change decimal separator to ,.
  3. Change decimal separator to ..
  4. Save changes.
  5. Add a block using formatPrice such as Mini Cart block to the page.
  6. Add some products to cart, see the price was formatted using . as the decimal separator.

Expected behavior

A clear and concise description of what you expected to happen.
The formatted price should respect the store settings.

Screenshots

image

Environment

WordPress (please complete the following information):

  • Core version: 5.8.1
  • Gutenberg version (if installed): 2d6a363
  • WooCommerce version: 5.7.1
  • WooCommerce Blocks version: 6.2.0-dev
  • Site language: English
  • Any other plugins installed: WooCommerce Stripe Gateway 5.5.0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
2 participants