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

Product price dropping last zero in production #1311

Closed
chrise86 opened this issue Mar 26, 2012 · 2 comments
Closed

Product price dropping last zero in production #1311

chrise86 opened this issue Mar 26, 2012 · 2 comments

Comments

@chrise86
Copy link

In development, products with prices such as £2.20 will appear as such, however in production they appear as £2.2.

I have this in the locale file:

    currency:
      format:
        format: "%u%n"
        unit: "£"
        separator: "."
        delimiter: " "
        precision: 2
@radar
Copy link
Contributor

radar commented Mar 26, 2012

Where in particular are you seeing this happen?

@chrise86
Copy link
Author

Thanks for your response @radar, as soon as I saw your comment it hit me, and sure enough the answer was that I had added a decorator to override the products/taxons tree helper methods, and missed out the vital "number_to_currency" helper before the product price.

I guess sometimes it just takes a 3rd party to give you that slap to wake you up... Thanks again!

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

No branches or pull requests

2 participants