Searching system

This topic contains 18 replies, has 3 voices, and was last updated by  Stiofan O’Connor 5 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #243042

    imagine.web.creation
    Expired Member
    Post count: 61

    Hi, actually i have two type of add that an be chosen by my website’s user:

    – franchise
    – entreprise

    On the home page, i have put your search system with some fields that may be customized by the user…but it is only for the “entreprise” add. How can i do to only have 1 search system that works for both franchise and entreprise type?
    Is it possible to add a fiels with a select option so the user can first choose between enteprise and franchise…and then…depending on what kind of add he chose, it shows different fields to extend the search.

    for exemple:

    first field: – entreprises ; – franchises

    Then if you select entreprises, those fields appear: – canton, – collaborateurs, – CA moyen 3 ans, – Prix de vente

    But if you select franchise, those fields appear: – canton, – inclus, – droit d’entrée, – redevance

    Can you help please?

    #243068

    Guust
    Moderator
    Post count: 29970

    That is how it should works if you create 2 custom post types: one for entreprise and one for franchise.
    Look here: https://wpgeo.directory/
    And choose from the first drop down.

    #243072

    imagine.web.creation
    Expired Member
    Post count: 61

    thanks guust. This is already what i have done: 2 type of add. But when i select the search widget it only shows the search fields related to the “entreprise” type and not for both type.

    #243074

    Guust
    Moderator
    Post count: 29970

    Then I guess you do not have any listings in franchise yet. Add at least one listing in one category in franchise, and it should activate.
    If that is not the issue, post URL and admin details so we can investigate.

    #243075

    imagine.web.creation
    Expired Member
    Post count: 61
    This reply has been marked as private.
    #243079

    Guust
    Moderator
    Post count: 29970

    You have some custom CSS that is hiding it:

    .geodir-search {display: none;}
    #256097

    imagine.web.creation
    Expired Member
    Post count: 61

    i don’t find it ?
    Have you deleted it? Cause if so, there is still a problem cause nothing appears for the franchise on the main search bar that is on the top of every page.

    #256465

    Guust
    Moderator
    Post count: 29970

    I cannot find where to fix it, but it is in this file:
    your site/?custom-css=1

    I have overridden it at GD > design > scripts

    .geodir-search {display: initial !important;}
    #277437

    imagine.web.creation
    Expired Member
    Post count: 61

    Hi, i do have an other question on the search system.

    For my adds i ve asked you a few weeks ago ho to custom the sell price by adding a number separator, so that my numbers will no longer appear like “CHF 3546789 but like “CHF 3456789.

    It works perfectly but i d like to do the same for the select option called “Prix de vente (CHF)” in the search system. I have tried several coding things but nothing works.
    Can u help?

    thanks

    #277550

    Guust
    Moderator
    Post count: 29970

    I have alerted Stiofan to your question.
    This was the previous topic: https://wpgeodirectory.com/support/topic/few-issues/

    #277823

    imagine.web.creation
    Expired Member
    Post count: 61

    Thanks!

    #277865

    Stiofan O’Connor
    Site Admin
    Post count: 22954

    Hello,

    TO convert another field numbers you just have to add 1 new line below the other code

    add_filter('geodir_show_geodir_FIELD_HTML_VAR', 'gd_convert_my_numbers',10,2);

    Replace FIELD_HTML_VAR with the custom field html var.

    Thanks,

    Stiofan

    #277904

    imagine.web.creation
    Expired Member
    Post count: 61

    Thanks Stiofan,

    but that is not exactly what i was looking for.
    The coding you gave me the first time in the other topic worls perfectly and i have applied it to other field in my website.

    But my problem is for this specific search system…cause i don’t find the right field. I have the code…yes…but cannot find the right label to add into that corresponds to the search system. i have tried some but none of them work.

    #277911

    Stiofan O’Connor
    Site Admin
    Post count: 22954

    OK i am not exactly sure what you mean, can you try to explain it a bit better please?

    Stiofan

    #277914

    imagine.web.creation
    Expired Member
    Post count: 61

    add_filter(‘geodir_show_geodir_FIELD_HTML_VAR‘, ‘gd_convert_my_numbers’,10,2);

    I cannot find the right FIELD_HTML_VAR that i need to put in the code to change the look of the number in my advanced search.

    The problem that i have is not the code line…is what to put inside…cause i don t find the FIELD_HTML_VAR that is related to the numbers that appear in my advanced search selection.

Viewing 15 posts - 1 through 15 (of 19 total)

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

Open Support Ticket