OS Property support center

SOLVED !!! Change Currency Format

  • Barbara
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago - 9 years 10 months ago #64587 by Barbara
SOLVED !!! Change Currency Format was created by Barbara
Hi,

I would like to change Currency Format. Currently in Configuration there are several options, unformunately non of them reflects the way, we have our Currency Format.

Currently it looks like: CHF 2,950.00

However I would like to change in the configuration to: CHF 2'950.00

Is there an easy way to add a new number format to the dropdown? 000'000'000.00

Thank you for your advice and help.

Barbara
Last edit: 9 years 10 months ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #64628 by Mr. Dam
Replied by Mr. Dam on topic Change Currency Format
Hi,
To change the money format as you want, please open file: components > com_osproperty > helpers > common.php
find
Code:
case "1": return number_format($price,2,',','.'); break; case "2": return number_format($price,2,',',' '); break; case "3": return number_format($price,2,'.',','); break; case "4": return number_format($price,0,',','.'); break; case "5": return number_format($price,0,',',' '); break; case "6": return number_format($price,0,'.',','); break;


and change to
Code:
case "1": return number_format($price,2,"'","."); break; case "2": return number_format($price,2,',',' '); break; case "3": return number_format($price,2,".","'"); break; case "4": return number_format($price,0,,','.'); break; case "5": return number_format($price,0,',',' '); break; case "6": return number_format($price,0,".","'"); break;


Good luck
Dam
The following user(s) said Thank You: Barbara

Please Log in or Create an account to join the conversation.

  • Barbara
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #64629 by Barbara
Replied by Barbara on topic Change Currency Format
Thank you very much Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan