All popular questions related to OS Property will be posted here

Change price format in Price slider

  • Mr. Dam
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
9 years 2 months ago #70374 by Mr. Dam
Change price format in Price slider was created by Mr. Dam
Hi,
To change the money format in Price slider from 1,000,000.00 to 1.000.000,00. Please follow these steps
1. Open file:
components > com_osproperty > helpers > helper.php
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:
echo number_format($min_price, 0, '', ',');
and change to
Code:
echo number_format($min_price, 0, '', '.');

Find
Code:
echo number_format($max_price, 0, '', ',');
and change to
Code:
echo number_format($max_price, 0, '', '.');

Good luck
Dam
Attachments:

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

Moderators: Mr. DamNguyen Phu Quan