how to change currency ??

More
1 week 2 days ago #51792 by reefworld2001
Hi could you please guide where can we change currency please? can't find option? currently it is by default set in us dollars

cheers

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
1 week 1 day ago #51793 by milos
Replied by milos on topic how to change currency ??
Hello,

To change the currency symbol in Joomla 5 and/or move currency right from the number, edit files:

/templates/homes/html/com_content/featured/default_item.php
/templates/homes/html/com_content/category/blog_item.php

For example, to change from $ to EUR, change this
Code:
if( $field->label == "Price") { echo '<div class="price">' . '$' . number_format($field->value) . '</div>'; }

to this:
Code:
if( $field->label == "Price") { echo '<div class="price">' . number_format($field->value) . ' EUR' . '</div>'; }

Also, in this file: /templates/homes/html/com_content/article/default.php change this:
Code:
if( $field->name == "price" && $field->value) { echo '<div class="price">' . '$' . number_format($field->value) . '</div>'; }

to this:
Code:
if( $field->name == "price" && $field->value) { echo '<div class="price">' . number_format($field->value) . ' EUR' . '</div>'; }

Regards,
Milos

Please Log in to join the conversation.

Time to create page: 0.149 seconds
Powered by Kunena Forum