• Resolved vvalisoy

    (@vvalisoy)


    Hello everyone, in my store we have 5 currencies AED, SAR, QAR etc but all shown in Arabic lang (like this: ?.?) . I want to display them in English version like AED, SAR, QAR, OMR BHD

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Hello @vvalisoy

    By default, currencies should not be translated. Instead, they should display their designated currency symbol as AED, SAR, QAR…. May I ask if you are currently using any translation plugins?

    Regards,
    Andrés

    Thread Starter vvalisoy

    (@vvalisoy)

    Translatepress

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Have you checked if temporary disabling Translepress in your staging website solves this issue? If that’s the case, this problem should come from your translations.

    You can also check your /wp-content/languages/ folder and check if temporary deleting your .mo files solves the issue.

    Regards

    Thread Starter vvalisoy

    (@vvalisoy)

    btw i use hello elementor, it says i cant add widget i tried shortcode but it doesnt showup

    https://langcurrency.wpengine.com/

    please check url. in mobile it must be in burger menu but it doesnt show up: https://ibb.co/2vdcDQm

    Thread Starter vvalisoy

    (@vvalisoy)

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    I’m not sure to follow you, does it mean that the initial currency symbol issue was solved?

    If it is not, could you please follow the instructions from my previous response and share your results?

    Thread Starter vvalisoy

    (@vvalisoy)

    I still didn’t find solution for that I will try another methods. Urgent issue for me for now this switcher widget

    Thread Starter vvalisoy

    (@vvalisoy)

    ADDED CUSTOM CODE TO FUNCTIONS.PHP AND SOLVED

    
    /**
    * Change a currency symbol
    */
    add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);
    
    function change_existing_currency_symbol( $currency_symbol, $currency ) {
    switch( $currency ) {
    case 'AED': $currency_symbol = 'AED'; break;
    		case 'SAR': $currency_symbol = 'SAR'; break;
    		case 'QAR': $currency_symbol = 'QAR'; break;
    		case 'KWD': $currency_symbol = 'KWD'; break;
    		case 'BHD': $currency_symbol = 'BHD'; break;
    		case 'OMR': $currency_symbol = 'OMR'; break;
    }
    return $currency_symbol;
    }
    

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Currency Code in English’ is closed to new replies.