Currency Symbol

Discussion in 'Templates customization' started by chicoletto, Jul 25, 2017.

  1. chicoletto

    chicoletto New Member

    Joined:
    Feb 25, 2017
    Messages:
    2
    Hey everybody,
    Before posting my queston I looked in the whole forum and I only found the answer for older version of aMember and dont match anymore.

    I would like to adjust the position of the currency symbol. Right now it showes as (for exemple) 10 $.
    And i would like to put it like this $ 10.

    I looked into several files but can't find the one to change or to adjust.
    Hope someone can help me .

    Have a bright day
    Paolo
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello Paolo,

    You can use the following workaround in site.php:
    http://www.amember.com/docs/Site.php_file

    PHP:
    Am_Currency::$currencyList['USD']['format'] = '%2$s%1$s';
    Am_Currency::$currencyList['USD']['symbol'] = '$';
    replace USD with iso code of your currency. I guess you also may want to replace symbol so I added code for it as well.

Share This Page