Pages:

new currency please...

verdi

No avatar

2004-12-09 23:54

hai,
I need a new currency like: Rp3.000,00 not 3.00$
A symbol must pu on front not like a dollar, somebody help me.
I still never get an email order if i try to order.... :(

verdi

treewood (OpenSolution)

Avatar: treewood

2004-12-10 09:13

go to "core/other.php" and check "tPrice( )" function

witaj.net

verdi

No avatar

2004-12-10 10:46

ok treewood, thx, but i have know nothing about php so would you help me or maybe you need to make a new plugins :)

treewood (OpenSolution)

Avatar: treewood

2004-12-10 12:00

verdi - need/no need ... no time :/

witaj.net

verdi

No avatar

2004-12-10 12:21

ok then, treewood. maybe I'll ask you again if have good mute :)

deleted

verdi

No avatar

2004-12-10 12:28

What should i change on this code for change from
300.00 to 3.000

------- other.php--------

if( !function_exists( 'tPrice' ) ){
/**
* Zwracanie ceny
* @return float
* @param float $fPrice
*/
function tPrice( $fPrice ){
return sprintf( '%01.2f', $fPrice );
} // end function tPrice
}

deleted

treewood (OpenSolution)

Avatar: treewood

2004-12-10 13:33

verdi from 300.00 you want 3.000 or 3.0000?

witaj.net

verdi

No avatar

2004-12-11 10:25

hai, i want xxx,xx not xx.xx
thanks for the answer

verdi

No avatar

2004-12-11 10:28

for example x.xxx,xx ---> 3.000,00 or 10.000,00

deleted

treewood (OpenSolution)

Avatar: treewood

2004-12-11 15:34

then change sprintf to number_format() check php manual (www.php.net)

witaj.net

verdi

No avatar

2004-12-12 08:00

i found this:

<?php
$field_inhalt = str_replace(array(".", ","), array("", "."), $field_inhalt);
?>

verdi

No avatar

2004-12-12 08:19

maybe i won't change that currency, i give up. I'm so confused.
Thanks before,
regards

deleted

treewood (OpenSolution)

Avatar: treewood

2004-12-12 08:20

verdi - watch number_format() in php manual (www.php.net)

witaj.net

verdi

No avatar

2004-12-12 08:26

treewood, i already check it, i found this script but where i must change?
-----------php.net--------

<?php
$field_inhalt = str_replace(array(".", ","), array("", "."), $field_inhalt);
?>

The str_replace() call will first replace all dots with blanks, and then replace all commas with dots. That way, it doesn't break down when you try a number over one million (i.e. 1.010.453,21)

deleted

verdi

No avatar

2004-12-13 15:05

currency :P

cemetery

No avatar

2004-12-16 12:26

It so hard .... =D>

ADSL = Auto Dis (and) SlowLy

mirzha

No avatar

2004-12-18 00:00

@verdi:
try to change sprintf() from sprintf( '%02.0f', $ ) to sprintf('%d', $ )
in core/products-ff.php, core/orders-ff.php

and change variable in js/fix.js

var w = f.slice( 0, f.length-2 ) + "." + f.slice( f.length-2, f.length );
to
var w = f.slice( 0, f.length-2 ) + "," + f.slice( f.length-2, f.length );

and

var poprawnyFloat = /^-?[0-9]{1,}[.]{1}[0-9]{1,}$/i;
to
var poprawnyFloat = /^-?[0-9]{1,}[,]{1}[0-9]{1,}$/i;

it's not change 3.00 $ to 3.000,00 Rp
but you can get currency like 3000,00 Rp.

You can see my website www.sepatukaca.com and i'm indonesian too :D
(apa harusnya ini ditulis pake bahasa indo ya? :P)

verdi wong

No avatar

2004-12-18 13:59

mirzha, makasih yah. :D saya akan coba.
Kamu tahu dari mana caranya ?
Thanks mirzha...

verdi

Header

No avatar

2004-12-19 21:01

People help, how to make "xxx xxx,00" or "xxx.xxx,00"?

Sidelife

No avatar

2005-05-17 19:15

Change this : return sprintf( '%01.0f', $fPrice );
To this : return number_format($fPrice,2,',','.');

This will change value to xx.xxx,xx

Don't forget to edit product and refill your price value, to see the modified value

Pages:
Back to top
about us | contact