Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: euro amount format

euro amount format 3 years 2 months ago #761

  • DUSSAUSSOY
  • DUSSAUSSOY's Avatar
  • Offline
  • Junior Boarder
  • Posts: 31
  • Karma: 0
Hi,

I configured amount currency with "EUR". It's working perfectly but the format amount is not correct :
45,000.00 EUR should be 45 000,00 EUR

In Europe we don't put comma separator for $1.000.00 but comma is for decimal.

Please can you explain how to change this ?

Thank you
The administrator has disabled public write access.

euro amount format 3 years 2 months ago #762

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2756
  • Thank you received: 291
  • Karma: 40
Hi,

Please let me know how "45,000.00 EUR" should look in your site. And also kindly send your FTP details to This email address is being protected from spambots. You need JavaScript enabled to view it. . So that we will change it from our end.

Thanks
The administrator has disabled public write access.

euro amount format 3 years 2 months ago #763

  • DUSSAUSSOY
  • DUSSAUSSOY's Avatar
  • Offline
  • Junior Boarder
  • Posts: 31
  • Karma: 0
Hi,

45,000. EUR should look 45 000,00 EUR

It means :
- replacing comma by space
- replacing dot by comma

Thank you to give me details or file to replace, sorry but I can't give you FTP details
thanks and regards
F
The administrator has disabled public write access.

euro amount format 3 years 2 months ago #766

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2756
  • Thank you received: 291
  • Karma: 40
Hi,

Kindly open the following files,

{ root } / components / com_jomclassifieds / views / advert / tmpl / default.php

{ root } / components / com_jomclassifieds / views / default / tmpl / default_list.php

{ root } / components / com_jomclassifieds / views / default / tmpl / default_grid.php

{ root } / modules / mod_jomclassifieds_adverts / tmpl / default.php

In the above files search the below line

$price = number_format($item->price, 2) . ' ' . $this->config->currency;

and replace it by below lines

$price = number_format($item->price, 2);
$price = str_replace(",", " ", $price);
$price = str_replace(".", ",", $price);
$price = $price . ' ' . $this->config->currency;

Thanks
Last Edit: 3 years 2 months ago by Super User.
The administrator has disabled public write access.
The following user(s) said Thank You: DUSSAUSSOY

euro amount format 3 years 2 months ago #810

  • DUSSAUSSOY
  • DUSSAUSSOY's Avatar
  • Offline
  • Junior Boarder
  • Posts: 31
  • Karma: 0
Thank you, it works fine !
The administrator has disabled public write access.

euro amount format 3 years 1 month ago #982

  • Fabio Limatola
  • Fabio Limatola's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1
  • Karma: 0
works fine, but instead with the module file for an error
{ root } / modules / mod_jomclassifieds_adverts / tmpl / default.php

**********************************************************************************
Fatal error: Using $this when not in object context in /web/htdocs/xxx/home/modules/mod_jomclassifieds_adverts/tmpl/default.php on line 50
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.440 seconds