Jump to content

validate.php static public function isPrice($price) error


Recommended Posts

The price validation in validate.php
static public function isPrice($price){} has a big error in Version 1.0.0.8. It is pretty working when the price is in dot (.) format (123.12). The price is not validated when it's in 123,12 (european format). Is it the bug or what. I got this error while confirming the last step in bankwire payment. I have Taxes applied.

static public function isPrice($price)
{
  return ereg('^[0-9]{1,10}(\.[0-9]{1,9})?$', $price);
}



Anyone, please tell me is it a bug of this funtion or I've misconfiguration something from admin.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...