Thousands separator with apostrophe

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

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

Open Support Ticket
  • Author
    Posts
  • #439865

    amweb
    Full Member
    Post count: 55

    Dear GD team,

    I am setting up a real-estate directory and was trying to use the predefined field “Price” which is basically very good, but lacks one little detail for proper formatting of the numbers: the thousands separator option is missing the format with an apostrophe (e.g. CHF “1’234’567.00”), which is standard in Switzerland.

    I managed to add it in the file “custom_fields_functions.php” as an additional option (see attachment), and it seems to work, but will unfortunately get lost in the next update.

    Would it be possible to add this format in a next update?
    Or as an alternative, can you tell me if there is any hook/action I could use to obtain the correct layout for prices?

    An additional question: is it possible to have a multi-currency setup for the price field? There will also be properties sold outside of Switzerland, which will be handled for example in EUR instead of CHF, therefore I would need to distinguish these cases.

    Thank you very much in advance for your help.

    Kind regards,
    Aron

    #439868

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

    Patrik
    Moderator
    Post count: 1971

    Hi,

    We will add the thousand separator in the next update of the GD plugin. You also need to make a change in geodir_currency_format_number() function in the same file on line no. 3634.

    Regarding, Multicurrency setup, it is not possible as of now in GD.

    Regards,
    Patrik

    #439935

    amweb
    Full Member
    Post count: 55

    Perfect, thank you Patrik for your rapid response and for considering to add the separator in the next update! 🙂

    Concerning the multicurrency part I will have to find a different approach, e.g. one “Sale price” and one “Rent” field for each needed currency. It’s not optimal, but it will work as a workaround for now.

    Have a great day and enjoy your weekend,
    Aron

    #440085

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    FYI this was in the release yesterday 🙂

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

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

Open Support Ticket