OS Property support center

European decimal system in quick search

More
9 years 11 months ago - 9 years 11 months ago #69990 by Miki
I would replace the comma ( 500,000 ) with the point ( 500.000 ) in the form of quick search on the homepage of my site, because in Italy the comma is used for decimal places. It's possible?
thank you
Last edit: 9 years 11 months ago by Miki.

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

More
9 years 11 months ago #70028 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic European decimal system in quick search
Hi,
To change the money format, please follow these steps
1. Open file: components > com_osproperty > helpers > helper.php
2. Find
Code:
price_from = price_from.formatMoney(0, ',', '.'); price_to = price_to.formatMoney(0, ',', '.');

and change to
Code:
price_from = price_from.formatMoney(0, ','. ','); price_to = price_to.formatMoney(0, ','. ',');

Find
Code:
<?php echo number_format($min_price, 0, '', ','); ?>

and change to
Code:
<?php echo number_format($min_price, 0, '', '.'); ?>

Find
Code:
<?php echo number_format($max_price, 0, '', ','); ?>

and change to
Code:
<?php echo number_format($max_price, 0, '', '.'); ?>

Thanks
Dam
The following user(s) said Thank You: Miki

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

More
9 years 11 months ago - 9 years 11 months ago #70048 by Miki
Replied by Miki on topic European decimal system in quick search
Hi Dam!
I did what you 've shown me, but the result is that the bar slider filter is gone (as you can see in the attached file). What's wrong ?
I take this opportunity to ask you two things :
1. Can I change the color of the component with a color not present in the template ? for example, in blue or gray ?
2. As in Italy is not used to make the distinction between bedrooms, beds and rooms, I can eliminate the " Rooms " in the research component ?
Thanks a lot for the collaboration!
Last edit: 9 years 11 months ago by Miki.

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

More
9 years 11 months ago #70052 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic European decimal system in quick search
Hi Miki,
Please revert your changes and submit ticket on category: OS Property and i will help you to change the currency format in Price range slider.
Thanks
Dam

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

Moderators: Dang Thuc DamNguyen Phu Quan