Locale Workaround
This workaround is for people who cannot for one reason or another find out their server locale information. If all else fails, you can hard-code the money formatting function in CWIncFunctions.php:
// Format for the money for CW2
function cartweaverMoney($theNum) {
return "$" . number_format($theNum, 2, ".",",");
}
// for CW3
function cartweaverMoney($theNum, $showCurrencySymbol = true, $stripComma = false) {
$currencySymbol = '$';
$theNum = number_format($theNum, 2, ".",",");
if($showCurrencySymbol) $theNum = $currencySymbol . $theNum;
if($stripComma) $theNum = str_replace(",","",$theNum);
return $theNum;
}



Blog RSS feed












