- Posts: 4
- Thank you received: 0
how to change currency ??
-
reefworld2001
Active member -
Topic Author
- New Member
-
Less
More
1 week 2 days ago #51792
by reefworld2001
how to change currency ?? was created 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
cheers
Please Log in to join the conversation.
-
milos
Support Staff -
- Moderator
-
Less
More
- Posts: 6787
- Thank you received: 720
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
to this:
Also, in this file: /templates/homes/html/com_content/article/default.php change this:
to this:
Regards,
Milos
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