Ezeaniekwe Ferdinand

How to change currency

10 posts in this topic

Hi,

How do you make it so that the currency symbol is in front of the number with comma separators?

For example: $1,000,000 instead of 1000000 $

Thanks.

I'd like to know the same as well please! How do we move the currency logo in front of the actual value.

Cheers,

Share this post


Link to post
Share on other sites

Hi Chithaka,

You can add file detail.php to folder "templates/bt_real_estate/html/com_bt_portfolio/bt_real_estate/layout/detail", and default.php to folder "templates/bt_real_estate/html/com_bt_portfolio/bt_real_estate/layout/list". It show as you want.

change price.zip

Share this post


Link to post
Share on other sites

Thanks for your help.

When portfolio print button is enabled and clicked it displays the incorrect currency format. How does one change this instance as well?

Thanks!

Share this post


Link to post
Share on other sites

The replaced the above files, as well as edited the following file: templates/bt_real_estate/html/mod_bt_contentshowcase/themes/default/default.php.

That fixed the remaining 50$ to $50 issue.

FROM:

case'measurement':

?><span class="extrafield-value swap-bt-price"><span class="bt-price"><?php echo $field->value.' '.$field->default_value[1]; ?></span></span><?php

break;

TO:

case'measurement':

?><span class="extrafield-value swap-bt-price"><span class="bt-price"><?php

if($field->id == 1){

echo $field->default_value[1].number_format($field->value, 0, '', ',');

}else{

echo $field->value.' '.$field->default_value[1];

}

?></span></span><?php

break;

Share this post


Link to post
Share on other sites