• Resolved ziso

    (@ziso)


    I use the US$ as my currency. My problem is that I also sell my products to Canada who use the CAD$. Even though Woocommerce gives me the option to choose US$, the products only display the $ sign so I get tonnes of people asking me about exact currency.

    Is there a way I can display product prices as US$?

    Thanks in advance

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

Viewing 1 replies (of 1 total)
  • Hi @ziso,

    It is possible to change the currency symbol without changing the currency. You can add this snippet to your functions.php file or use a plugin called Code Snippets to include it.

    
    function wporgforum_change_existing_currency_symbol( $currency_symbol, $currency ) {
         switch( $currency ) {
              case 'USD': $currency_symbol = 'US$'; break;
         }
         return $currency_symbol;
    }
    add_filter('woocommerce_currency_symbol', 'wporgforum_change_existing_currency_symbol', 10, 2);
    
    

    In that snippet above the USD is the currency code we’re working with and US$ is what we want to change it to be.

    Hope that helps out!

Viewing 1 replies (of 1 total)

The topic ‘Specified Currency In Products’ is closed to new replies.