WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » [Plugin: WooCommerce – excelling eCommerce] Need IDR or Rupiah (Indonesia Currency) on WooCommerce

[Plugin: WooCommerce – excelling eCommerce] Need IDR or Rupiah (Indonesia Currency) on WooCommerce

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nih bang…

    add_filter( 'woocommerce_currencies', 'add_my_currency' );
    
    function add_my_currency( $currencies ) {
         $currencies['IDR'] = __( 'Rupiah (Rp)', '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 'IDR': $currency_symbol = 'Rp'; break;
         }
         return $currency_symbol;

    di function.php ya

    http://wcdocs.woothemes.com/snippets/add-a-custom-currency-symbol/

    Solved, makasi bang

    bang, aku pake cara itu malah jadi gini bang, help ya bang..

    …..public_html/wp-content/themes/mystile/functions.php on line 71

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WooCommerce – excelling eCommerce] Need IDR or Rupiah (Indonesia Currency) on WooCommerce’ is closed to new replies.
Skip to toolbar