Home Forums WordPress Sinhala Forum Change Woocommerce currency lable

  • Change Woocommerce currency lable

  • madusha

    Member
    February 2, 2021 at 10:19 am

    අඅපි woocommerce වලින් currency එක රුපියල් වලට change කරනකොට ඒක පෙන්නන්නෙ (රු) කියලා.. ඒක Rs කියල පෙන්නන විදිහට change කරගන්නෙ කොහොමද?

  • Thushara

    Administrator
    February 3, 2021 at 2:00 pm

    Me code eka add karala balanna. Me plugin eka use karanna plwn add karanna.

    Code Snippets

    add_filter( 'woocommerce_currency_symbol', 'change_currency_symbol', 10, 2 );

    function change_currency_symbol( $symbols, $currency ) {

    if ( 'LKR' === $currency ) {

    return 'Rs';

    }

    return $symbols;

    }

  • madusha

    Member
    February 3, 2021 at 4:43 pm

    thank you.. mn balannam enm..

Viewing 1 - 3 of 3 posts

Original Post
0 of 0 posts June 2018
Now