Support » Plugin: WooCommerce » Removing currency symbol EXCEPT on cart or checkout

  • supervinnie40

    (@supervinnie40)


    Hello,

    Is it possible to add a bit of PHP to my Functions.php that will remove the currency symbol on all pages EXCEPT on the cart and the checkout?

    If not via PHP, is there another way?

Viewing 1 replies (of 1 total)
  • supervinnie40

    (@supervinnie40)

    I have been given this code. Which seems to work for removing the currency symbol from the webshop. However, it also removes the symbol on the shopping cart and the checkout. And I need the currency symbol to return in the shopping cart and the checkout.

    function avia_remove_wc_currency_symbol( $currency_symbol, $currency ) {
    if ( !is_cart() || !is_checkout()){
    $currency_symbol = ”;
    return $currency_symbol;
    }
    }
    add_filter(‘woocommerce_currency_symbol’, ‘avia_remove_wc_currency_symbol’, 10, 2);

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.