How To Change Default Currency & How to Remove Region From Address

This topic contains 24 replies, has 2 voices, and was last updated by  Abdilahi Mohamed 4 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #528642

    Abdilahi Mohamed
    Expired Member
    Post count: 26

    Hi.I would like to know how to change the property CPT default currency from US$ to my local currency. Also I do not want the region & zip code fields in the archive page, archive itema and details page. I also need them removed from the frontend “add listing page”. I tried following your tutorial and adding this code to the child style.css but there is an error somewhere:

    [css]#geodir_post_region_row,
    #geodir_post_zip_row {
    display: none
    }[/css]

    [css]span[itemprop=”addressRegion”],
    span[itemprop=”postalCode”] {
    display: none;
    }[/css]

    #528645

    Abdilahi Mohamed
    Expired Member
    Post count: 26

    Right now I am forced to use US dollars as the currency because my local currency (Kenya Shillings) is not on the list of default currency. How can I use Kenya Shillings?

    #528728

    Alex Rollin
    Moderator
    Post count: 27815

    Please share WP Admin credentials so we can check the settings.

    WordPress Credentials
    WP Admin Login URL:
    WP Admin Username:
    WP Admin Password:

    It is quite possible to adjust the address display format.

    Try using the GD Post Address widget. It has an advanced setting (blue button) to add a template. Hover on the question mark to see how to use it.

    For the pricing field, when you display the field, you can use GD Post Meta. This can be used to display the label and the value, leaving out the icon for the currency. If that is the currency you are referring to, that is how to leave it out. As far as adding a new icon, the icons come from Font Awesome and there is only the selection you see available there unless you upgrade to FA Pro.

    #528765

    Abdilahi Mohamed
    Expired Member
    Post count: 26
    This reply has been marked as private.
    #528769

    Abdilahi Mohamed
    Expired Member
    Post count: 26
    This reply has been marked as private.
    #528772

    Abdilahi Mohamed
    Expired Member
    Post count: 26
    This reply has been marked as private.
    #528774

    Abdilahi Mohamed
    Expired Member
    Post count: 26

    I also removed the $ symbol and added KSH symbol so the price issue is solved I think. Thanks

    #528775

    Abdilahi Mohamed
    Expired Member
    Post count: 26

    I did not like the style of Custom maps addon so i disabled the addon and now I am left with ugly maps. I want to go back to how it was before custom maps addon.
    Now If I try to change map display by editing property, i find I cannot change map back to default or to terrain, hybrid etc. And the sidebar maps as well.

    #528780

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You can hide the zip code field with your own custom CSS if necessary, but there isn’t an option to hide it.

    It is up to you what values end up in the address fields.

    In the example you show, it looks like much of the address data has been left in the street address field. You will want to remove the duplicate elements to control the output on the frontend.

    In the Location tab, click the blue button to reveal the advanced options. There you have several additional options including the ability to allow the user to move the map pin without changing the address. I am not sure about your situation/area exactly, but, in many cases when the address coverage in the Maps API is not getting you the results you want, disabling the update of the address when moving the map pin gives you the freedom to enter the address and move the map pin as needed.

    About the custom maps addon, that doesn’t have any effect on the map type as in roadmap, street, or satellite. Only Google has different layers in that way. If you are using OSM it will always be a roadmap or with the custom maps addon you can choose one of the 3rd party layers offered.

    #528781

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #528786

    Abdilahi Mohamed
    Expired Member
    Post count: 26

    Thank you for the quick reply. Okay I have changed settings on the Location tab, and now it displays the address that I want. I’m going to paste your CSS code on the customizer additional CSS box then see how it does. The last thing I need is to completely hide the region field on add listing and also from displaying on the sidebar post meta widget. In kenya we have same region name and city name in very many instances, so it is better to only have city name on addresses to avoid listing same name twice. As you can see on the attachment below the widget displays the address with the name Mombasa twice because Mombasa is both the city name and the region name is also Mombasa. That is what I mean when I say I would like to totally remove region field please. In other countries it is practical but not in Kenya. Thanks

    #528790

    Abdilahi Mohamed
    Expired Member
    Post count: 26

    Also is there a way to show price per month on the properties CPT? I have properties for sale & rent. So I need the properties for Rent to display Rent Per Month and NOT Price. I just need properties for sale to display selling price.

    #528792

    Abdilahi Mohamed
    Expired Member
    Post count: 26

    This code div#geodir_address_zip_row { display: none; } does the job of hiding zip well.
    However if I try hiding the region using div#geodir_address_region_row { display: none; }
    I find that the settings change to have only one city on the city drop down field. It chooses Nairobi as the default region thereby only shows one city choice.

    #528817

    Alex Rollin
    Moderator
    Post count: 27815

    It’s really not possible to hide the region field if you want to use more than one region or more than one city.

    With the GD Post Address, using the custom Template option you can remove the region from display on the frontend and still use it in the backend to select different regions.

    About the price field, have you tried changing the label? You can also add another text field, if needed, and change it to meet your needs.

    https://wpgeodirectory.com/docs-v2/places/custom/

    #528968

    Abdilahi Mohamed
    Expired Member
    Post count: 26
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 25 total)

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

Open Support Ticket