Formatting Event Booking

More
11 years 9 months ago - 11 years 9 months ago #44427 by Erik
Formatting Event Booking was created by Erik
Dear Tuan,
I have two questions concerning formatting in Event Booking:

How can I please get a blank between price and the currency symbol?
Please see picture Question_1

In the configuration of Event Booking I use for decimal point: comma (",").
But in the front-end still a point (".") will be presented - how can I please change that?
Please See pictures: Question_2 , Question_3, Question_4; Question_5

Thank you in advance for your assistance.

With kind regards,

Erik
Last edit: 11 years 9 months ago by Erik.

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

More
11 years 9 months ago #44489 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Formatting Event Booking
Hi Erik

1=> You will need to edit the code. Look at the file components/com_eventbooking/helper/helper.php, find the code below and change it to add the space you want:
Code:
public static function formatCurrency($amount, $config, $currencySymbol = null) { $decimals = isset($config->decimals) ? $config->decimals : 2; $dec_point = isset($config->dec_point) ? $config->dec_point : '.'; $thousands_sep = isset($config->thousands_sep) ? $config->thousands_sep : ','; $symbol = $currencySymbol ? $currencySymbol : $config->currency_symbol; return $config->currency_position ? (number_format($amount, $decimals, $dec_point, $thousands_sep) . $symbol) : ($symbol . number_format($amount, $decimals, $dec_point, $thousands_sep)); }

For other items, I think I will need to edit code directly on your site to see what's wrong and get it corrected for you. Could you please submit a support ticket so that I can do that ?

Tuan

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

Moderators: Tuan Pham Ngoc