gsaroso - use search by words "format", "price" etc.
nikenhn
2007-03-14 18:36
Hi treewood, I've have the same problem. Already find that keyword in this forum but no answer. People talk about convert $10390.00 to $10390. Not $10390.00 --> $10,390.00. Could you tell us how to change the format of number in price fields??? (with thousand seperated mark)
nikenhn - hmm... check for tPrice() function and change: sprintf( '%01.2f', $fPrice ); to function number_format() ? Check PHP manual
nikenhn
2007-03-15 16:14
thanks treewood. Here're my change:
sprintf( '%01.2f', $fPrice ); --> sprintf( '%01.0f', $fPrice ); -------- This code will change price format from $1000.00 to $1000.
sprintf( '%01.2f', $fPrice ); --> sprintf( '%01.2f', $fPrice,2, '.', ',' ); -------------- This code doesn't work (it make no change in price format). Did I type it correctly? Is there something wrong in it??
nikenhn - then go to core/products.php and to throwProductsData() after change add this: $aList['fPrice'] = tPrice( $aList['fPrice'] ); before: $content .= $tpl->tbHtml( $sFile, 'LIST_LIST' );
i succesfully change the price to x,xxx.xx but problem with the subtotal in Shopping Cart Menu... it can't do a right mathematics...
here an example..., 1st product total is 2,399.96 2nd product total is 10,140.00
but the subtotal is wrong, it displays 12, that means it only sum 2+10, equal 12..., so the 3number behind "," is not calculated..., how could it throw that 3 numbers...
234233adas - sorry but this is JavaScript ... You must edit js/orders.js and change fix function. I dont know JS well and i cant help You with that now.