DA SEARCH - currency
Hello,
I have a search that uses Min and Max but it seems there is a problem.
I see that the default helper file uses:
//strips currency markup
function WADS_stripCurrency($currencyField) {
if (isset($currencyField) && $currencyField != "undefined" && $currencyField != "") {
if (is_numeric($currencyField)) {
return $currencyField;
}
else {
return preg_replace("/[^\d\.]/", "", $currencyField);
}
}
return "";
}
but I'm thinking there needs be a string_replace to remove commas?
For instance one of my values is 42,500.00
Searching 40000 - 50000 will not return a result. I'm thinking it's the comma. Is this true?