WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Need IDR or Rupiah (Indonesia Currency) on WooCommerce (4 posts)

  1. dedeobi
    Member
    Posted 1 year ago #

    How to make a currency on wooCommerce plugin? I want to make an optional currency with IDR or Rp.

    http://wordpress.org/extend/plugins/woocommerce/

  2. pauro
    Member
    Posted 1 year ago #

    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/

  3. dedeobi
    Member
    Posted 1 year ago #

    Solved, makasi bang

  4. nunpiyu
    Member
    Posted 1 year ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.