Browsing this Thread:   1 Anonymous Users




« 1 (2)


Re: price format for Germany
#4
Webmaster
Webmaster


See User information
I am not sure I understand but I think this is what you want.

Go to addlisting.php around line 93 find this line:

$price = str_replace(array(','), '', $_POST["price"]);

I guess change the ',' to '.'


same thing for around line 79 of modify.php

same thing for around line 584 and around line 649 of admin/index.php

Let me know your results.

John

Posted on: 2010/9/14 20:59
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: price format for Germany
#3
Quite a regular
Quite a regular


See User information
it's works fine thanks

i have a question, if make the user a new classifieds, then must write the user a price in this format:

5.90

i can change the Format in

5,90

the user must write this format 5,90 in Germany, not this 5.90

i can make a control check in the addlisting.php

thasts the user not can write this format 5.90 ?

Thanks

Greet Host2

Posted on: 2010/9/14 9:13
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: price format for Germany
#2
Webmaster
Webmaster


See User information
Go to viewad.php around line 159 and find this line:

$price = number_format($price, 2, ".", ",");

switch the "," and "." so it looks like this:

$price = number_format($price, 2, ",", ".");


I think that will do it, but search the admin/index.php around lines 230 & 396 for the same line and change there too.

Let me know if that works for you.

Thanks,

John

Posted on: 2010/9/14 5:37
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


price format for Germany
#1
Quite a regular
Quite a regular


See User information
Hello John,

how can i modify Classifieds for German Price Format ?

example:


US Format:

12,000.00

German Format:

12.000,00


Can you help me ? Thanks

Greet host2

Posted on: 2010/9/13 8:48
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top




« 1 (2)



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

Register now!
 
Main Menu
 
Who's Online
9 user(s) are online (6 user(s) are browsing Forum)

Members: 0
Guests: 9

more...
 
Donat-O-Meter
Make donations with PayPal!
Stats
Goal: $25.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $25.00