Categories that are not in the location must be hidden in the list

This topic contains 23 replies, has 3 voices, and was last updated by  Alexander Krutov 5 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #504544

    Alexander Krutov
    Expired Member
    Post count: 652

    Hello! Can I not show categories that are not present in a given location in the search filter list? I have not found such settings in the short code.

    #504545

    Alexander Krutov
    Expired Member
    Post count: 652
    This reply has been marked as private.
    #504548

    Guust
    Moderator
    Post count: 29970

    The category field does not know what location the visitor will enter into the Near field, so that is not possible.

    Thanks

    #504557

    Alexander Krutov
    Expired Member
    Post count: 652

    I know that you can use the category short code to show which categories are relevant to the active location. Is there no way to do this in the filter list?

    #504560

    Guust
    Moderator
    Post count: 29970

    No, because may want to search for a different location.
    You can use the GD categories shortcode like you said.

    Thanks

    #504563

    Alexander Krutov
    Expired Member
    Post count: 652

    I suggest in the next update that the list of categories be dynamically changed according to the location. This is very convenient and informative for the visitor to the site.

    Please see for example: the Maldives country https://telehaus.com.ua/country/maldives/?region-id=81- has 3 categories in the Services filter. Atoll Baa region https://telehaus.com.ua/country/maldives/?region-id=210&services%5B%5D=0# – in the filter of 2 categories.

    #504661

    Guust
    Moderator
    Post count: 29970

    Firstly, that example does not allow visitors to search for anything, but only to filter the existing listings on the page [or in the region?].
    It does not allow to filter in any other region, limiting the visitor.

    You can use the GD Locations widget or shortcode, that will only list cities in the region or country.
    And use the GD Categories widget or shortcode, so only relevant categories are shown.

    Thanks

    #504700

    Alexander Krutov
    Expired Member
    Post count: 652

    Guust, good afternoon! Thank you for explaining. I agree with you. I was wrong.

    Regarding your recommendation: Unfortunately, I can’t use GD Locations widget or shortcode because I’m changing the map language and changing the addresses in the listings to match the active language. Therefore, GD Locations displays several city names in different languages, which is not good.

    Let’s close this question. I will continue to design with the existing functionality.

    #505141

    Alexander Krutov
    Expired Member
    Post count: 652

    Good afternoon! I’ll continue with the question. I noticed that the GD_Locations shortcode does not correctly list the category buttons. This is provided that the user has entered a location near the one for which there are no listings. The example is “Paris” https://dev.verni.com.ua/location/near/gps/48.856614,2.3522219000000177/. GD_Locations shows a list of category buttons for which all countries are listed on the site. This is error, is it? After all, GD_Map shortcode does not have such an error. How can I fix this?

    #505148

    Alexander Krutov
    Expired Member
    Post count: 652

    By the way, this feature also does not work well on the demo site https://wpgeo.directory/gdf/location/near/gps/48.856614,2.3522219000000177/ I’m looking for Houston and I’ve got a list of category buttons that the site doesn’t give the user the results they expect when they’re clicked on. At the same time, we can see on the map that the search result for Houston is zero. Don’t you think it’s strange? It is even more strange that after the search we do not see anywhere what settlement we were looking for, but only see the title of the page “Location”.

    What should the user understand by “Near: GPS Location”?

    #505230

    Alex Rollin
    Moderator
    Post count: 27815

    GD Locations, you are correct, it is not a ‘nearby’ type of feature. Improvements are planned for the feature in the future, but there are other priorities ahead of it.

    We also have a task to look at the title for the Near pages in a future version, thanks for making us aware of that again.

    We will be working on these for a future version but cannot give a date at this time.

    #505276

    Alexander Krutov
    Expired Member
    Post count: 652

    Thank you for hearing my opinion. I will be waiting for the new version to be released. In the meantime the feature isn’t working properly, I’d like to hide the near search feature from visitors. I would also like to hide the “Near: My Location” feature. This will help to avoid misunderstandings with the list of wrong category buttons. Then I will be ready to launch the site in operation. Can you help solve this issue?

    #505278

    Alex Rollin
    Moderator
    Post count: 27815

    This CSS will hide the near search field

    
    
    
    /*GDV2 Custom CSS - Hide the Search Near field in all GD Search Bars */
    .gd-search-field-near {
        display: none;
    }
    
    #505281

    Alexander Krutov
    Expired Member
    Post count: 652

    No, that’s not what I meant. Please look at the screenshot.

    The search field should be left to allow them to find locations for listings that are available on the site, but they should be prohibited from finding locations near something and “My location”

    This should be done on the location switcher.

    #505290

    Alexander Krutov
    Expired Member
    Post count: 652

    And I also thought it would be possible not to show a block of category buttons if there are no listings for this type of listing for this location on the page. Is this difficult to do?

Viewing 15 posts - 1 through 15 (of 24 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