Home Forums Themes Support Gecko Adding currency to pricing

Topic Resolution: Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #37324

      Hi,

      How can I add “CDN” to the prices listed on my site? Thanks.

    • #37330

      Hi Cair,

      Please add below code to gecko-child > functions.php

      function custom_currency_symbol( $currency_symbol, $currency ) {
          switch( $currency ) {
              case 'USD':
                  $currency_symbol = 'USD $';
                  break;
              case 'EUR':
                  $currency_symbol = 'EUR $';
                  break;
              case 'CAD':
                  $currency_symbol = 'CAD $';
                  break;
          }
          return $currency_symbol;
      }
      add_filter('woocommerce_currency_symbol', 'custom_currency_symbol', 30, 2);

      Kind regards

      • This reply was modified 4 years, 5 months ago by Harry.

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #37342

      Hi,

      It didn’t seem to work for some reason.

    • #37345

      I see the code you add, it cause hide currency symbol.

      .woocommerce-Price-currencySymbol {
      	display: none;
      }

      Please remove this code.

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #37363

      Great thank you!

Viewing 4 reply threads

You must be logged in to reply to this topic.