• Resolved varganism

    (@varganism)


    I need show price currency “грн” in UTF-8, but plugin show me “грн” in ISO-8859-1.
    How to fix this?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Altos

    (@sefin)

    Are you using the last version of the plugin? (Which is 2.4.1)

    Thread Starter varganism

    (@varganism)

    Yes. 2.4.1
    Please help me fix this.

    Plugin Author Altos

    (@sefin)

    What is the currency you’re using? I’m sorry but I couldn’t find the same currency on WooCommerce settings.

    Thread Starter varganism

    (@varganism)

    Default Ukrainian currency in Woocommerce is a symbol “₴”, but usually all ecommerce in Ukraine use habitual reduction “грн”. For this i use code in functions.php:

    add_filter( 'woocommerce_currencies', 'add_my_currency' );
    
    function add_my_currency( $currencies ) {
    
         $currencies['UAH'] = __( 'Українська гривня', 'woocommerce' );
    
         return $currencies;
    
    }
    
    add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2);
    
    function add_my_currency_symbol( $currency_symbol, $currency ) {
    
         switch( $currency ) {
    
             case 'UAH': $currency_symbol = 'грн'; break;
    
         }
    
         return $currency_symbol;
    
    }
    Plugin Author Altos

    (@sefin)

    I think that the problem is just there, in the functions.php as no other problems have been reported using the existing WooCommerce currencies.

    Could you check if the file “functions.php” is saved using the UTF-8 encoding?

    I think there are some encoding ploblems in your file functions.php.

    Thread Starter varganism

    (@varganism)

    I checked “functions.php” – it is saved using the UTF-8 encoding.
    All other products without using “WooPrice Calculator” showing currency “грн” correct. Only “WooPrice Calculator” products has this problem.

    Thread Starter varganism

    (@varganism)

    Problem Solved by showing currency “грн” with using plugin “Saphali Woocommerce Russian”.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘ISO-8859-1 –>> UTF-8’ is closed to new replies.