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

Thread: Phone number shows wrong

  1. #1

    Phone number shows wrong

    hello. I try to add the phone number of the seller to a area by using

    <div class="phone">
    {$seller_info.phone}
    </div>

    and the phone number shows some strange characters.

    instead of
    Phone: (0755) 999-999

    i get

    a:0755|n:999999

    why dows this happen and olso, from where we can control the number format - in my country the phone number is written as 0755999999 or 0755.999999
    thanks

  2. #2
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    Hello Petrache,

    you can use the smarty replace option.
    Examble:

    <div class="phone">
    {$seller_info.phone|replace:'(':''|replace:') ':'.'|replace:'-':''}
    </div>

    That should result: 0755.999999

    Not tested @ this time...

    Regards
    Steffen
    Last edited by Steffen Buschkemper; November 24, 2013 at 07:27 PM.

  3. #3
    thanks for this but will wait to see if flynax team will provide the proper code to show it as it should.

  4. #4
    Quote Originally Posted by Steffen Buschkemper View Post
    Hello Petrache,

    you can use the smarty replace option.
    Examble:

    <div class="phone">
    {$seller_info.phone|replace:'(':''|replace:') ':'.'|replace:'-':''}
    </div>

    That should result: 0755.999999

    Not tested @ this time...

    Regards
    Steffen
    didn't work unfortunaly

  5. #5
    Hello Petrache Nicolae,

    Please go to ftp://includes>>classes>>reefless.class.php

    find method: parsePhone

    and code:

    PHP Code:
    Only registered members can view the code
    and change - and + and () to your symbols.
    Viktor,
    Flynax technical department,
    Best wishes.

  6. #6
    Quote Originally Posted by Viktor View Post
    Hello Petrache Nicolae,

    Please go to ftp://includes>>classes>>reefless.class.php

    find method: parsePhone

    and code:

    PHP Code:
    Only registered members can view the code
    and change - and + and () to your symbols.
    thanks Viktor but what about the initial issue? the field readed from account fields shows ok as (0755) 999-999m but, if i use {$seller_info.phone} i see a:0755|n:999999 instead. what's wrong?

  7. #7
    Hello Petrache Nicolae,

    Please use {$account} instead {$seller_info}
    If you print {$listing_data|@print_r} in listing details you will see same format (a:0755|n:999999) for phone but if you print {$listing|@print_r} value for phone will be line you want.
    Viktor,
    Flynax technical department,
    Best wishes.

  8. #8
    Quote Originally Posted by Viktor View Post
    Hello Petrache Nicolae,

    Please use {$account} instead {$seller_info}
    If you print {$listing_data|@print_r} in listing details you will see same format (a:0755|n:999999) for phone but if you print {$listing|@print_r} value for phone will be line you want.
    unfortunaly is not working. i have replaced {$seller_info.phone} with {$account.phone} and now, the value (0755) 999-999 doesn't show at all

  9. #9
    Hello Petrache Nicolae,

    Where are you using {$seller_info} variable? What page?
    Viktor,
    Flynax technical department,
    Best wishes.

  10. #10
    Quote Originally Posted by Viktor View Post
    Hello Petrache Nicolae,

    Where are you using {$seller_info} variable? What page?
    listing_details.tpl

+ Reply to Thread