WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WooCommerce – excelling eCommerce] The currency symbol for China Yuan is incorrect

[Resolved] [Plugin: WooCommerce – excelling eCommerce] The currency symbol for China Yuan is incorrect

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author royho
    Participant

    @royho

    Yes, they need to fix that. But for now use this -> http://wcdocs.woothemes.com/snippets/add-a-custom-currency-symbol/

    solagirl
    Member

    @solagirl

    Thank you, I will go with your suggestion.

    Plugin Author Mike Jolley
    Participant

    @mikejolley

    solagirl
    Member

    @solagirl

    @mikejolley Thank you for the link, I can see now it is a RMB & CNY issue.

    solagirl
    Member

    @solagirl

    The latest version fixed the problem, great!

    durichitayat
    Member

    @durichitayat

    Sorry, the latest version fixed the RMB symbol but it is presented to Paypal as $ USD

    Still buggy would love to see this fixed.

    solagirl
    Member

    @solagirl

    Hi,
    I also found the problem that @durichitayat mentioned. It seems that the WooCommerce Multilingual plugin can fix this problem, however, it requires WPML to run.

    I think WooCommerce is simply lack of the function of converting currency. I’d love to see this function being added.

    durichitayat
    Member

    @durichitayat

    Hey Solagirl…

    Good to know. I will try this. Thx!

    durichitayat
    Member

    @durichitayat

    Still the same problem. Anyone come up with a solution that doesn’t require Multilingual? I’d love to know 🙂

    You might want to try other payment methods like alipay which support RMB, paypal simply doesn’t support it

    durichitayat
    Member

    @durichitayat

    @solagirl: Thx! Alipay is a good 2nd option but the client is insisting on using Paypal :-/ …

    Prehaps I’ll try making the price a JS Variable setting the global currency in USD then mask the USD price by converting it to RMB on the fly. Obviously this isn’t optimal though.

    Has anyone tried this before and/or recommend a snippet that should try for this?

    THX!

    add_filter('woocommerce_paypal_args', 'convert_rmb_to_usd');
    function convert_rmb_to_usd($paypal_args){
        if ( $paypal_args['currency_code'] == 'RMB'){
            $convert_rate = 6.2116;
            $paypal_args['amount_1'] = round( $paypal_args['amount_1'] / $convert_rate, 2);
        }
        return $paypal_args;
    }

    The snippet above can fix paypal problem with RMB symbol, one can either set the $convert_rate manually, or try to get it updated from somewhere automatically.

    I accept payment in HKD (Hong Kong Dollars).
    How can I convert RMB to HKD in paypal?

    I think you can try something like this, put it in your theme’s functions.php

    add_filter(‘woocommerce_paypal_args’, ‘convert_rmb_to_hkd’);
    function convert_rmb_to_hkd($paypal_args){
    if ( $paypal_args[‘currency_code’] == ‘RMB’){
    $convert_rate = 0.8; //set the converting rate
    $paypal_args[‘currency_code’] = ‘HKD’; //change RMB to HKD
    $paypal_args[‘amount_1’] = round( $paypal_args[‘amount_1’] / $convert_rate, 2);
    }
    return $paypal_args;
    }

    @solagirl THX! It’s work.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Resolved] [Plugin: WooCommerce – excelling eCommerce] The currency symbol for China Yuan is incorrect’ is closed to new replies.