Hi ,
I like to now if it's possible to remove just for "zip" the comma ?
at the moment it look like so : Zip: 7,449
and I like to displayed: Zip: 7449
Regards
Stephane
Printable View
Hi ,
I like to now if it's possible to remove just for "zip" the comma ?
at the moment it look like so : Zip: 7,449
and I like to displayed: Zip: 7449
Regards
Stephane
Hello Stephane,
I think you created zip code field with type numeric, I suggest you create a ticket and our support will solve it ASAP.
You can change it also for all numeric fields by yourself:
1. find the file: /includes/classes/rlCommon.class.php -> function adaptValue()
2. find rows (~847):
2. and replace it to following:PHP Code:
Only registered members can view the code.
PHP Code:
Only registered members can view the code.
Cool that's it.
Is there also a possibility to change the comma with a dot in the field from the mileage and the option cm3 that i insert in the ADDITIONAL INFORMATION field?
In place from 132,00km -> to 132.00km / and 2,996cm3 to 2.996cm3
Stephane
Hi, just try it.
But no changes at that point. just zip change now: "4777.00"
i change the code to
case 'number':
$out = number_format($value, 0, '.', '');
than the zip is display again correct, but the other field are not changing
Stephane
Hello Stephane,
You should create condition
I hope it should solve your problem.PHP Code:
Only registered members can view the code.
Hi Viktor,
I try that also, but the zip in the admin page change from " 4779" to "Yes"
all other field( cm3 and mileage) are nothing changing, its stay with comma "1,987cm3"
Stephane
Hello Stephane,
Ohh do you want to remove comma for all numeric fields?
You need to remove number_format for all lines in method: adaptValue in file rlCommon.class.php
Hi,
for the zip its OK with the first code from Curtis.
Just the 2 other field, is not changing. Still have a comme stay in place. But i like to change it with a dot. If I remove the number_format , that will not delete the comma in both fieldQuote:
case 'number':
$out = $value;
Stephane
Hello Stephane,
Would you please send a screenshot where do you want to change it and what should be after change.
Attachment 1189
Here the screenshot.
Login for ftp did not changed. Viktor have the details. If not I can send again :-)
Thanks
Stephane
Hello Stephane,
I have checked your site and fields looks like you want it.
Cm3: 1.243 cm3
Km: 51.000 Km
Perfekt now.
Thanks to all :-)
Stephane
Hello,
Since this is a topic about the numeric field I didnt want to make a new topic. My question is how can I change the numeric field to: "1.8". When I enter 1.8 in the engine_cylinders field it gets transformed to "18.0".
Thanks
Hello Murat,
When you fill fields on add listings page you can write 1.(point)8 and system will show same on listings details. I think you wrote 18 and system change it to 18.0. Please try to fill 1.8 on add listing page.
hello,
I did write 1.8 I just tried again. Also when I write "6" it's visible as 6.0 on the website.
Hello Murat,
If you want I can show you how you can remove number format for all numeric fields but for field engine 6.0 better :) but for other fields yes it is not correct may be.
Also you can read above in this post. Curtis wrote how you can remove number format for all numeric fields: http://www.flynax.com/forum/showthre...ll=1#post11098
Hi,
For the mileage its good to have it as is: 23,000km for example. But for Engine Cylinders I want 1.8 to be 1.8 not 18.0 How can i do that? Thanks
Hello Murat,
Yes I fount it on your site and fixed :)
But you should edit your existing listings.
Solution:
Open file: ftp://includes>>classes>>rlListings.class.php
find method: 'create' and code:
and replace to:PHP Code:
Only registered members can view the code.
then find method: 'edit' and code:PHP Code:
Only registered members can view the code.
and replace to:PHP Code:
Only registered members can view the code.
save and edit your listings again.PHP Code:
Only registered members can view the code.
Thanks alot!