+ Reply to Thread
Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34

Thread: Restrict Autocomplete on only few countries???

  1. #11
    That's why I said above about it. It is not easy. And will be better if you create new ticket with the request.
    Viktor,
    Flynax technical department,
    Best wishes.

  2. #12
    Quote Originally Posted by Samir Fakirane View Post
    Hi Victor thank you for your reply,
    i did set it to MA and still don't have it working, i did clear all my cache.
    i will test it more and report
    Quote Originally Posted by Godwin Agbavor View Post
    Yeah seems like it not working, I tried but never worked
    I confirm, it works.
    You should definitely find mentioned block and replace it with correct one. if you can not find the block, try to do like below.
    The changes are bold.

    Find:
    Code:
    Only registered members can view the code.
    Replace to:
    Code:
    Only registered members can view the code.
    Note to autocomplete and Autocomplete with small and capital letter.

    Add below line after above line.
    Code:
    Only registered members can view the code.
    change uk to other country iso code if you like.

    Find:
    Code:
    Only registered members can view the code.
    Replace to:
    Code:
    Only registered members can view the code.

  3. #13
    EDIT: you can use below code for more than one country

    Code:
    Only registered members can view the code.

  4. #14
    Senior Member
    Join Date
    Sep 2014
    Posts
    125
    Quote Originally Posted by Bahram Soltanirad View Post
    I confirm, it works.
    You should definitely find mentioned block and replace it with correct one. if you can not find the block, try to do like below.
    The changes are bold.

    Find:
    Code:
    Only registered members can view the code.
    Replace to:
    Code:
    Only registered members can view the code.
    Note to autocomplete and Autocomplete with small and capital letter.

    Add below line after above line.
    Code:
    Only registered members can view the code.
    change uk to other country iso code if you like.

    Find:
    Code:
    Only registered members can view the code.
    Replace to:
    Code:
    Only registered members can view the code.
    I did everything just as instructed but didn't work for me

  5. #15
    Hello Godwin Agbavor,

    I opened your lib.js file and I see this line:

    Code:
    Only registered members can view the code.
    but if you read my above answers: (http://forum.flynax.com/showthread.p...ll=1#post20429)
    I explained about it. Please read it again.

    Let me know if my answer not clear for you.
    Viktor,
    Flynax technical department,
    Best wishes.

  6. #16
    Senior Member
    Join Date
    Sep 2014
    Posts
    125
    Quote Originally Posted by Viktor View Post
    Hello Godwin Agbavor,

    I opened your lib.js file and I see this line:

    Code:
    Only registered members can view the code.
    but if you read my above answers: (http://forum.flynax.com/showthread.p...ll=1#post20429)
    I explained about it. Please read it again.

    Let me know if my answer not clear for you.
    I tried that first and it didn't work so I put everything back not to messed up my site, then I saw this codes today and tried it again and never worked, If you were in my lib.js means you had a chance to help me.

  7. #17
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    Ok i just found out that this solution worked for me only in the search by distance side bar, when i try in the home page header search it still shows me the results from other countries.

    any idea ??
    Last edited by Samir Fakirane; November 22, 2017 at 08:35 PM.

  8. #18
    Quote Originally Posted by Godwin Agbavor View Post
    then I saw this codes today and tried it again and never worked.
    Please see your code. It should be 'us' not 'usa'

  9. #19
    Junior Member
    Join Date
    Nov 2017
    Posts
    2
    I have to do the same thing i want to restrict for 1 country the search bar. I went to that file lib.js and tried my best to change the code for 1 country but it didnt work then i removed all the code for which you are showing above. Search bar still working. Kindly tell me the path of that code where from search bar getting all countries data. Thanks

  10. #20
    Junior Member
    Join Date
    Nov 2017
    Posts
    2
    Hello...I am also facing the same problem, i want to restrict country in the search bat but it doesn't happen. Please help

+ Reply to Thread