I'm working in a project to an African country with a lower currency (1USD=350) and so I wantn to hide or disable the decimal part of the price, as it is not used. How can I do that?
Tks.
Hi,
We don't have the setting for this, however, you can change the format in the code. We have one function that formats the displayed amount.
You can change this in component/com_jbusinessdirectory/assets/utils.php
Search for the function getPriceFormat and change
$amountString = number_format($amount , 2 , $dec_point, $thousands_sep);
to
$amountString = number_format($amount , 0 , $dec_point, $thousands_sep);
Thank you.
And how can I edit the Default Time Zone indications, in order to add also the locations related to the directory? For example: change the GMT: +1 from "Brussels, Copenhagen, Madrid, Paris" to "Brazzaville, Windhoek, Luanda, Kinshasa". I can't find this in the language files of the component, and the core Joomla files are different.
Tks
[UPDATE: I've got it: I can edit it in the same utils.php file. SOLVED]
You're welcome. Let us know if anything else