+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: How remove comma in zip

  1. #1
    Senior Member
    Join Date
    Dec 2014
    Location
    Germany
    Posts
    199

    How remove comma in zip

    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

  2. #2
    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.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Quote Originally Posted by Stephane Boultgen View Post
    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
    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):
    PHP Code:
    Only registered members can view the code
    2. and replace it to following:
    PHP Code:
    Only registered members can view the code
    Thank you, Curtis.
    @Flynax Company

  4. #4
    Senior Member
    Join Date
    Dec 2014
    Location
    Germany
    Posts
    199
    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

  5. #5
    Quote Originally Posted by Stephane Boultgen View Post
    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
    Hello Stephane,

    You can use the following changes for it.
    Try it:

    PHP Code:
    Only registered members can view the code
    Thank you, Curtis.
    @Flynax Company

  6. #6
    Senior Member
    Join Date
    Dec 2014
    Location
    Germany
    Posts
    199
    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

  7. #7
    Hello Stephane,

    You should create condition

    PHP Code:
    Only registered members can view the code
    I hope it should solve your problem.
    Viktor,
    Flynax technical department,
    Best wishes.

  8. #8
    Senior Member
    Join Date
    Dec 2014
    Location
    Germany
    Posts
    199
    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

  9. #9
    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
    Viktor,
    Flynax technical department,
    Best wishes.

  10. #10
    Senior Member
    Join Date
    Dec 2014
    Location
    Germany
    Posts
    199
    Hi,

    for the zip its OK with the first code from Curtis.
    case 'number':
    $out = $value;
    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 field

    Stephane

+ Reply to Thread