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

Add number_format function to all prices #72

Merged
merged 5 commits into from
Nov 8, 2016
Merged

Add number_format function to all prices #72

merged 5 commits into from
Nov 8, 2016

Conversation

ebisbe
Copy link
Contributor

@ebisbe ebisbe commented Oct 25, 2016

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

@@ -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"
Copy link
Contributor Author

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

@ebisbe
Copy link
Contributor Author

ebisbe commented Nov 7, 2016

Hello @darryldecode,

Can you merge my PR??

@darryldecode
Copy link
Owner

👍

@darryldecode darryldecode merged commit bbfe8d8 into darryldecode:master Nov 8, 2016
@it-can
Copy link
Contributor

it-can commented Nov 9, 2016

@darryldecode @ebisbe Can you please revert this, my whole app is not working anymore... see this issue #74

@ebisbe
Copy link
Contributor Author

ebisbe commented Nov 9, 2016

You can define how many decimals you want to use. I have to write the documentation...

Add this to your .env file
SHOPPING_DECIMALS=2
or publish config package parameters.

@it-can
Copy link
Contributor

it-can commented Nov 9, 2016

Let's continue this conversation in issue #74

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