modifying map search

This topic contains 13 replies, has 3 voices, and was last updated by  Paolo 7 years, 7 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #265542

    John
    Expired Member
    Post count: 15

    Our location map has a nice little search overlay. You can do a text search, or filter by categories. So far, so good.

    We also would like to filter by an advanced search field, “service area”. We configured it to appear in the advanced search, but it does not appears in the search overlay thing on the map.

    Is there a way to get an advanced search field to appear as a filter in the search overlay on the map?

    #265620

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the map search is limited to search in the map by listing title or to filter by category. It’s not linked to the search form that can be extended with the advance search options.

    Thanks

    #269078

    John
    Expired Member
    Post count: 15

    Can you point us to some php we could override to make this work though?

    #269672

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    unfortunately not. That would require a lot of custom code, it’s not something that it could be done easily with few lines of php.

    Thanks

    #269730

    John
    Expired Member
    Post count: 15

    Well, we do custom code … but it would be very helpful if you could at least give a few pointers as to where to get started.

    I mean like literally where the map filtering code is, since you are familiar with it. It would save us a little time, anyway.

    #269731

    Paolo
    Site Admin
    Post count: 31206

    I asked to developers to check what you requested and point you in the right direction…

    Thanks for your patience,

    #269744

    Stiofan O’Connor
    Site Admin
    Post count: 22956
    #271236

    John
    Expired Member
    Post count: 15

    OK, I think I see how to do this (maybe), but what is the safe way to override

    function geodir_draw_map($map_args = array())

    #271273

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    if u need me to add a hook somewhere let me know.

    Stiofan

    #271278

    John
    Expired Member
    Post count: 15

    That would be great if you could.

    We want add a section to function geodir_draw_map, right after (or before) the category filter. This new section would use a custom field as the filter.

    Background: this directory has “service areas”, meaning any given place is associated with one or more “service areas”. “service areas” is a multi select custom field.

    We want to let the user filter the map by “service areas” as well as by category.

    #271279

    John
    Expired Member
    Post count: 15
    This reply has been marked as private.
    #272653

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi,

    I mean if you tell me where in the code you want me to add a hook i will, so in the next release it will be there. i can add a do_action() so you can hook in and add anything u want. If you can give me a line number i will add it.

    Thanks,

    Stiofan

    #273322

    John
    Expired Member
    Post count: 15

    Can we get a quote for having your company add the ability to filter the home page map by custom field?

    Similar to the existing filter by category. The custom field is a multiselect.

    #273380

    Paolo
    Site Admin
    Post count: 31206

    I’m sorry, but we don’t provide customization services.

    Thanks

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

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

Open Support Ticket