Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @rajeevbagra2025,

    Thanks for reaching out!

    If you wish to remove the currency symbol from your store, except for the cart and checkout page, add this snippet of code to your active child theme’s functions.php file:

    function remove_wc_currency_symbol( $currency_symbol, $currency ) {
        {
            $currency_symbol = '';
            if ( is_cart() || is_checkout()) {
                $currency_symbol = '$';
            }
            return $currency_symbol;
        } 
    }
    add_filter('woocommerce_currency_symbol', 'remove_wc_currency_symbol', 10, 2);

    I believe the currency you want to remove is USD ($). If you are using any other currency, you will have to replace the ‘$’ symbol with the appropriate symbol in the above snippet.

    If you want to remove the currency symbol entirely, use this code:

    function remove_wc_currency_symbol( $currency_symbol, $currency ) {
        {
            $currency_symbol = '';
            return $currency_symbol;
        } 
    }
    add_filter('woocommerce_currency_symbol', 'remove_wc_currency_symbol', 10, 2);

    Please make sure you don’t edit the theme files directly as they will be overwritten when the theme is updated. To protect your changes from updates, create a Child Theme in which to keep all your changes.

    I hope this helps! Good luck!

    Hi @rajeevbagra2025

    In addition to what Kaavya said above, you could also use the Code Snippets plugin to add the code to your site.

    Hope this helps!

    Thread Starter Digital Splendid

    (@rajeevbagra2025)

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove pricing symbol’ is closed to new replies.