Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #300658

    I’d like to have my pricing table in Brazilian Reais (R$), but the R is way to big.

    Any way to fix this ?

    #300662

    Hey ax2201!

    Please add following code to Functions.php file in Appearance > Editor

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

    and choose Brazilian Reais in WooCommerce > Settings > Currency

    Cheers!
    Yigit

    #300711

    Thank you, but can you tell me EXACTLY where (on which line or after which section) to add the code, since I’ve never done this before. Thank you.

    #300713

    And also, where do i find the WooCommerce ?

    #300717

    Hey!

    Sorry i thought you were using WooCommerce. Please add your prices to pricing table as following

    10 <span class='currency-symbol'>R</span>$

    You can download WooCommerce from here – http://wordpress.org/plugins/woocommerce/ also you can go to Plugins > Add New and search for “WooCommerce” to install it

    Cheers!
    Yigit

    #300833

    Works fine, thank you.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Brazilian Real currency in pricing table’ is closed to new replies.