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

Fix Order shipped email total undefined #3153

Merged
merged 2 commits into from
Nov 2, 2017

Conversation

iakhator
Copy link

Resolves #3120
This PR resolve Order shipped total price is undefined to Float. The cause of the issue was that prices was Stored as Strings which causes a NaN error. Before summing, the prices have to be cast to a Float to convert them to Numbers.

Test

  • Login as Admin.
  • Place an order and checkout.
  • Check the email received to see the total price shown.

@iakhator iakhator requested a review from brent-hoover October 23, 2017 11:44
@brent-hoover
Copy link
Collaborator

Opened an issue #3215 for the underlying problem but I think we should get this workaround in in the meantime because having a broken order confirmation email is bad.

Copy link
Collaborator

@brent-hoover brent-hoover left a comment

Choose a reason for hiding this comment

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

Verified fixed.

@brent-hoover brent-hoover changed the base branch from master to release-1.5.6 November 2, 2017 21:46
@brent-hoover brent-hoover merged commit d064dc2 into release-1.5.6 Nov 2, 2017
@brent-hoover brent-hoover deleted the itua-fix-issue-3120 branch November 2, 2017 21:47
@brent-hoover brent-hoover mentioned this pull request Nov 2, 2017
Akarshit pushed a commit that referenced this pull request Jan 7, 2018
Fix Order shipped email total undefined
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.

2 participants