• Resolved andyyoung88

    (@andyyoung88)


    Our site serves expats In China exchange old and used items between each other in a garage sale style. As such, these people live in a country where exchanges are made in Chinese Yuan ( ¥ ).

    We would like to request this ever popular currency symbol be added to the list of options.

    Thank you very Much in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    you can add a new currency to the currencies list by adding the code below in your theme functions.php file

    
    add_filter("adverts_currency_list", "add_adverts_currency");
    function add_adverts_currency($list) {
        $list[] = array(
            "code"=>"CNY",
            "sign"=>"¥", 
            "label"=>"Chinese Yuan" 
        );
        return $list;
    }
    
    Thread Starter andyyoung88

    (@andyyoung88)

    Hi Greg,

    getting this error when we apply the code…
    Your PHP code changes were rolled back due to an error on line 24 of file wp-content/themes/Avada-Child-Theme/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘&’

    Thread Starter andyyoung88

    (@andyyoung88)

    Hi Greg,

    Looks like the email we got from you skewed the code. after revisiting your comment above we reapplied your code and it worked perfectly.

    Thanks a lot for your assist!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Missing Currency Symbol’ is closed to new replies.