Few issues

This topic contains 12 replies, has 3 voices, and was last updated by  imagine.web.creation 7 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #195013

    imagine.web.creation
    Expired Member
    Post count: 61

    Hi
    i am facing different issues.

    1. How can i remove the name of the country on each add ? Cause i am only active for national firms in my directory. So this country information is not needed.

    2. On the homepage’s map, we do have the map pointers to show each add. When clicking on it, some informations are appearing. I do only have the name of the location. Where can i go to configure that and to choose what should appearing or not?

    3. I have a field that is called “Prix de Vente” which is Selling price in English. I have big numbers so i need them to appaear clearly. Now it looks like CHF 1500000 and i d like them to appear like that CHF 1’500’000. How can i do that?

    Thanks in advance

    #195396

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    please provide a link so that we can inspect your website.

    Images can’t be inspected.

    Thanks

    #195404

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

    Paolo
    Site Admin
    Post count: 31206

    1) add this to gd > design > scripts > custom css:

    
    
    span[itemprop="addressCountry"] {
        display: none;
    }

    2) There are no options for that, it will require custom code, please see: https://wpgeodirectory.com/support/topic/how-do-i-remove-the-review-and-login-option/#post-193072

    3) I can’t see any easy way to do this. probably it can be done with Javascript, but I’m not 100% sure.

    I asked to the developers to check and let us know.

    Thanks

    #195737

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    #3 i have added this code to your theme functions.php but u should have it in achild theme so u dont lose in on theme update.

    
    
    function gd_convert_my_numbers($html,$arr) {
    if(isset($arr['value']) && $arr['value']){
    $format_val = number_format($arr['value'],0,'.',"'");
    $html = str_replace($arr['value'],$format_val,$html);
    }
        return $html;
    }
    add_filter('geodir_show_geodir_prix_vente', 'gd_convert_my_numbers',10,2);

    Thanks,

    Stiofan

    #195942

    imagine.web.creation
    Expired Member
    Post count: 61

    Hi guys

    Thanks for your quick answers.

    #1 –> unfortunately nothing has change after applying this code.

    #3 –> Thanks it looks perfect.

    For #2 i will check your link.

    😉

    #196183

    imagine.web.creation
    Expired Member
    Post count: 61

    #2 doesn’t work either

    #196413

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    #1 is fixed now, #2 there are no options it needs custome code.

    Stiofan

    #196427

    imagine.web.creation
    Expired Member
    Post count: 61

    Stiofan…i haven’t seen that i do have a second numeral field that requires the same customization as you did on the “Prix de vente”… this other field is “CA moyen/3 ans (CHF):”
    it appears just above the “prix de vente” in the add. (https://pmeavendre.ch/places/suisse/geneve-1/onex/travaux-artisants-construction/entreprise-electricite-a-remettre/)

    aand for number #2 can you help my with the custom code?

    #196474

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    to add the number formatting to another field you just need the html var prefixed with ‘geodir_’ so in this case just add this one line below the other code.

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

    for #2 we don’t do customization but if u let me know what you are trying to achieve i can point you in the right direction.

    Thanks,

    Stiofan

    #196646

    imagine.web.creation
    Expired Member
    Post count: 61

    Thanks now it s perfect.

    i haven’t identify clearly the limit of you help (customization)…so sorry if some requests are going too far in the support ability

    for #2 i am not at ease. i think that i should insert this code
    add_filter(‘geodir_custom_infowindow_html’ , ‘geodir_get_custom_infowindow_html’, 10,3) ;
    function geodir_get_custom_infowindow_html($html , $postinfo_obj, $post_preview = ”)
    {
    return ‘Here u can copy content of geodir_get_infowindow_html function and can make necessary changes in html ‘;
    }

    and replace ‘Here you can copy…. by for exemple ‘geodir_show_geodir_prix_de_vente’ and all of the other HTML information that i want to show….

    and put this code in the functions.php of my theme’s folder

    i am in the right direction?

    #196649

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you should copy the content of geodir_get_infowindow_html function and can make necessary changes in html.

    geodir_show_geodir_prix_de_vente isn’t correct.

    To show a custom field you will need to add something like:

    
    
    global $post;
    echo $post->geodir_prix_de_vente;

    Let us know if this is clearer.

    Thanks

    #196651

    imagine.web.creation
    Expired Member
    Post count: 61

    thanks paolo…but it ‘s far too hard for me…i will try to find someone to help me….cause it’s like if you are talking chinese to me with this coding line..hihi

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

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

Open Support Ticket