Search addon only show listings into the selected city

This topic contains 3 replies, has 2 voices, and was last updated by  Guust 8 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #318340

    giuseppe cuttone
    Buyer
    Post count: 242

    Hi,
    If I do not to install “search addon”, when user introduces a CITY into the field “NEAR” (field into the SEARCH BAR of widget GD SEARCH), user is redirected to the “search page” where is showed all the listings included into the X radius (where X is a default value setted from administrator). Ok, it is well.

    After to install “search addon”, when user introduces a CITY into the field “NEAR” will be opened a dropdown windows with the CITY (if it existes in my Data Base). If user to do click in the city showed in the dropdown windows annd select a BIG RADIUS (for example 320 km), user is redirected to the “search page” where only are showed the listings into located in the city selected and the RADIUS BUTTON do not run.
    For example, if in my page http://infocity.website/lugaresdeinteres/ I search in GIRONA and I introduce a RADIUS of 320 km, only will be showed the listing located in GIRONA city (1 listing), and the other listings near 10 km, or 20 km or 60 km are not showed.

    I do not know if it is an error, or if it is just like the developer want to run geodirectory.

    I hope it is an error… From my experience when an user search some listings into a determinated radius (for example 30 km) next to GIRONA city, it does the following:
    1. Introduce Girona in the “NEAR FIELD”
    2. It sett the radius in 30 km
    User are thinking it is searching listing into a radius of 20 km centered in GIRONA city and located in GIRONA city or into the cities netx to GIRONA. But it seems that if it do that, only will be showed listings into GIRONA city.

    If it is not an error, I`d like to do running GD SEARCH just when GD search was not installed (do not city filter, but only radius filter centered in the city). But I need GD SEARCH installed for the others feature like categories filter, and date filter for events, so I can not desinstall GD SEARCH.

    If it is not an error,is there a way for to do the following?
    Let GD SEARCH ADDON installed
    Let user introduce a City
    Let user select a radius
    To Show listings into the city and into the others cities next that are into the radius selected.
    Can you provide some code?
    Thanks a lot for your support.

    If it is the correct mode to runing, my question is: why user can set the max RADIUS of 320km? There is no city with this radius…

    #318344

    Guust
    Moderator
    Post count: 29970

    If you select “in GIRONA city” from the suggestions, you get all listings IN Girona.
    If you just type Girona, but not select from the suggestions, and then select a 320 radius, you will get all listing in that radius.

    320km NEAR the center of Girona: http://infocity.website/?geodir_search=1&stype=gd_place&s=+&snear=girona&sgeo_lat=41.9794005&sgeo_lon=2.821426400000064

    Turn of the suggestions as explained here: https://wpgeodirectory.com/docs/search-filters-overview/#near

    See more at https://wpgeodirectory.com/docs/gd-search/

    #319786

    giuseppe cuttone
    Buyer
    Post count: 242

    Thanks very much for your reply.
    You can mark this topic like resolved.

    #319879

    Guust
    Moderator
    Post count: 29970

    Thanks for letting us know.

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount