Advertisement:

Author Topic: [SOLVED] How to inverte number + currency to currency + number?  (Read 3885 times)

lucato

  • Full Member
  • ***
  • Posts: 182
  • [<o>] Brasil
Hi folks, good morning.
I'm trying to show the prices and on the fields the price and currency symbol as:
US$ 100.00
R$ 100,00

instead of as default:
100.00 US$
100,00 R$

I tried to change in the index.php the line below from/to:
FROM:
Code: [Select]
,'currency_format' => '{NUMBER} {CURRENCY}'
TO:
Code: [Select]
,'currency_format' => '{CURRENCY} {NUMBER}'But didn't solve. By checking the code where it does the echo to print the price, I found the line:
Code: [Select]
<span class="price"><?php echo osc_item_formated_price(); ?></span>

But, as I'm not a PHP programmer, I have no idea where is this formated price built to change it/invert.

Any idea how do I get to place the currency symbol before the value as default?

Thanks and have a great Sunday.
« Last Edit: July 12, 2015, 11:45:43 am by lucato »

lucato

  • Full Member
  • ***
  • Posts: 182
  • [<o>] Brasil
Re: [SOLVED] How to inverte number + currency to currency + number?
« Reply #1 on: July 12, 2015, 11:49:07 am »
Just found it into the Admin backend, go to:
Settings / Languages. Edit your language because each language has its currency format field. The default set was: {NUMBER} {CURRENCY}, so just invert it to {CURRENCY} {NUMBER}
Cheers