euro amount format

euro amount format was created by DUSSAUSSOY

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
7 years 1 month ago#761

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

Replied by Super User on topic euro amount format

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
7 years 1 month ago#762

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

Replied by DUSSAUSSOY on topic euro amount format

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
7 years 1 month ago#763

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

Replied by Super User on topic euro amount format

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
The following user(s) said Thank You: DUSSAUSSOY
Last edit: 7 years 1 month ago by Super User.
7 years 1 month ago#766

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

Replied by DUSSAUSSOY on topic euro amount format

Thank you, it works fine !
7 years 1 month ago#810

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

Replied by Fabio Limatola on topic euro amount format

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
7 years 1 month ago#982

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

Time to create page: 0.298 seconds

Contact us

  No.2/A, Venkateshwara Nagar,
1st Main Road, 100 Feet Road, SBM Towers, Velachery,Chennai - 600 042,India.
 admin@jomclassifieds.com
 skype.jomclassifieds
Copyright © 2013-2020 Jomclassifieds.com. All rights reserved. The Joomla! name, and logo are used under a limited license granted in the United States and other countries.