Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kieckhafer
Copy link
Member

@kieckhafer kieckhafer commented Jan 11, 2019

This PR is the same as #4910 , just into our release-2.0.0-r.8 branch instead of develop

Resolves #4900
Impact: minor
Type: bugfix

Issue

Price ranges that included a number above 1000 would show up as NAN in the admin Grid. This is due to the currency being formatted twice, which in turn adds double commas into the string, which breaks the display.

Solution

Use our "new" getProductPriceRange to calculate the price range based off of min and max numbers, instead of the price range string.

Breaking changes

None

Testing

  1. Change the price of all of a products variants to anything over $1,000 (anything that will show a comma).
  2. See that the price range correctly displays on the Grid when you are logged in as an admin.
  3. See that the price is not broken on the Grid AND PDP when not logged in as an admin.

@kieckhafer kieckhafer requested a review from spencern January 11, 2019 17:47
Copy link
Contributor

@spencern spencern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Erik 👍

@spencern spencern merged commit 72181da into release-2.0.0-rc.8 Jan 11, 2019
@spencern spencern deleted the fix-kieckhafer-4900-currencyNANissue branch January 11, 2019 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants