-
Notifications
You must be signed in to change notification settings - Fork 456
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
Add number_format function to all prices #72
Conversation
@@ -12,7 +12,7 @@ | |||
"require": { | |||
"php": ">=5.4.0", | |||
"illuminate/support": "5.0.*|5.1.*|5.2.*|5.3.*", | |||
"illuminate/validation": "5.0.*|5.1.*|5.2.*|5.3.*" | |||
"illuminate/validation": "5.0.*|5.1.*|5.2.*|5.3.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a bug with versions > 5.3.4 laravel/framework#16078
Hello @darryldecode, Can you merge my PR?? |
👍 |
@darryldecode @ebisbe Can you please revert this, my whole app is not working anymore... see this issue #74 |
You can define how many decimals you want to use. I have to write the documentation... Add this to your .env file |
Let's continue this conversation in issue #74 |
Now all prices shown by Cart and ItemCollection can be formated as desired. I've just wrapper for number_format() with a configuration file to configure it.
http://php.net/manual/en/function.number-format.php