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

Currency variable modifier decimals param not functioning #1879

Open
chrisdaviesweb opened this issue Mar 9, 2022 · 4 comments
Open

Currency variable modifier decimals param not functioning #1879

chrisdaviesweb opened this issue Mar 9, 2022 · 4 comments
Labels
Bug: Unconfirmed Bug report that is not yet confirmed and/or is not reproducible.

Comments

@chrisdaviesweb
Copy link

When using the currency variable modifier with GBP, the decimals param doesn't function.

PHP 7.4
EE 6.2.7 and earlier

{FIELD_NAME:currency currency="GBP" decimals="0"}

Testing with other currencies, including USD, shows the decimals functioning correctly, so it appears to be dependant on currency.

@chrisdaviesweb
Copy link
Author

Still seeing this in PHP 8+ and EE 7.1.6

@TomJaeger
Copy link
Contributor

Hi @chrisdaviesweb we're taking a peek at this one currently.. any chance you can check and see if you have https://www.php.net/manual/en/book.intl.php library installed?

If its easier, you could send us your PHP info page output on slack.

@chrisdaviesweb
Copy link
Author

Hi @TomJaeger - I've just checked. I see the following for 'Intl'.
intl

@intoeetive intoeetive added the Bug: Unconfirmed Bug report that is not yet confirmed and/or is not reproducible. label Apr 21, 2023
@intoeetive
Copy link
Contributor

We had several people trying to replicate this, could not. Seems to be very specific to reporter's server environment.

Keeping the issue open to see if other similar reports come in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Unconfirmed Bug report that is not yet confirmed and/or is not reproducible.
Projects
None yet
Development

No branches or pull requests

3 participants