+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Phone number formating: delete area field

  1. #1

    Question Phone number formating: delete area field

    Hi,

    is it any way to delete/remove Area field from admin and all forms?

    In DK we do not have any area codes.

    Regards,
    Steve

  2. #2
    Quote Originally Posted by Steve Danneholm View Post
    Hi,

    is it any way to delete/remove Area field from admin and all forms?

    In DK we do not have any area codes.

    Regards,
    Steve
    So, it can be done as hardcode only.
    In this case i advise you remove the current phone field with phone type and create the new phone field with simple number type.
    Thank you, Curtis.
    @Flynax Company

  3. #3
    Hello Steve,

    You can try to change code yourself.

    Open file: ftp://templates>>your_template>>tpl>>blocks>>field.tpl find code at line ~129

    Code:
    Only registered members can view the code.
    and replace to:

    Code:
    Only registered members can view the code.
    then open file: ftp://includes>>classes>>rlCommon.class.php at line ~464
    find code:

    PHP Code:
    Only registered members can view the code
    and replace to:

    PHP Code:
    Only registered members can view the code
    save and try to add listing again.
    Viktor,
    Flynax technical department,
    Best wishes.

  4. #4
    Dear Curtis and Victor,

    thanks for help!

    Victor, the code works fine with the Add new listing. But, is it possible to change it also on registration page for account?

    Thanks in advance!

    Regards,
    Steve

  5. #5
    Hello Steve,

    Oh sorry, yes I forgot about registration page.

    go to ftp://templates>>your_template>>tpl>>blocks>>res_account .tpl

    find code:
    Code:
    Only registered members can view the code.
    and replace to:
    Code:
    Only registered members can view the code.
    save and check again.
    Viktor,
    Flynax technical department,
    Best wishes.

  6. #6
    Dear Viktor,

    huge thanks! It is just fantastic! :-)



    Regards,
    Steve

  7. #7
    Hi
    I did as you say but my phone must be 10 number 0123456789
    I can only enter 9 number and when I add it I receive this message


    The "Phone" field is empty or partially filled in.

  8. #8
    Hello Mohammed,

    You can set 3 digit as code and 7 as phone number.
    Viktor,
    Flynax technical department,
    Best wishes.

  9. #9
    I set 3 for the area code and 9 in phone number

    I stel have the same message

  10. #10
    help pleas

+ Reply to Thread