Describe the bug
The isPrice Validation method is unable to validate prices on exponential notation
To Reproduce
Steps to reproduce the behavior:
The problem is where php choose to show the number on exponential notation. I know it happens with this price, but it can happen with anyother prices showing on this notation.
Hi @Daniel-Informax,
Thanks for your report.
I manage to reproduce the issue with, PS1.7.6.0 & 1.7.6.x branch & PS1.7.5.2 version.

But when I try with another price like 1.000010, it is well saved.
I know it happens with this price, but it can happen with any other prices showing on this notation.
Could you please provide an example?
Thanks!
For example, any other pice below 0.0001
@Daniel-Informax, I think in this case, it is normal behavior.
Thanks!
I know this is the php normal behavior, but i dont think this is the normal prestashop validation rule behavior.
Are you telling me, i cannot have a product with any of this prices?
So if i have a product with a price of 0.00009€, what can i do?, except overriding the Validation class method isPrice to fix it?
@Daniel-Informax, thanks for this clarifications.
I have the same behavior as PS1.7.6.0. & PS1.7.5.2.

Ping @PrestaShop/prestashop-core-developers what do you think?
Thanks!
Yes, it's a problem. :sweat_smile:
Maybe don't send an int but a string, or isPrice should not check only string :thinking: