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

Thread: seller phone number from registration

  1. #1
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110

    Question seller phone number from registration

    i collect phone number when a seller registers, in my case the phone number key is 'phone2'.
    but then when the seller post an Ad i have another listing field also has a key 'phone2' , i want to make the default value of phone number field be the registration phone number. i tried using this smarty variable {$seller_info.phone2} and {$seller_info.phone2.value} none of them work in the post ad page.
    can you please tell me what variable should i be using for that ???

  2. #2
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    any help with this please ?

  3. #3
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    is it possible to have to keys exactly the same ? usually if you try and create a duplicate key you get a warning. ? are you sure they are not one of the same thing ?

  4. #4
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    no it doesn't create error because one for listing field and one for registration field

  5. #5
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    Hi Viktor please help me with this one

  6. #6
    Hello Samir,

    Please open file: ftp://includes>>controllers>>add_listing.inc.php

    find line:
    Code:
    Only registered members can view the code.
    and add new below:
    Code:
    Only registered members can view the code.
    if your key for account field and listing field = 'phone'
    Save and check again
    Viktor,
    Flynax technical department,
    Best wishes.

  7. #7
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    Hi Victor,
    i dont want to change the intallation files, if i upgrade i will loose those changes. all i need is the variable used te collect registration phone number
    if my phone number key from registration is 'phone2' what the smarty variable would be ?? i dont need instrutions on how to modify the template. just the variable.

    as i said i tried {$seller_info.phone2.value} but it didn't work.

  8. #8
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    Hi Victor,

    can you please answer this question ?

  9. #9
    try {$seller_info|@print_r}

    if the field in there it should apear

  10. #10
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    thank you Mustafa but that didn't work

    just so you know i store the phone number as field type 'number' not 'phone' .

+ Reply to Thread