• Resolved cooladai

    (@cooladai)


    Hi there,

    I’m using the plug-in and it’s pretty nice, thank you for creating this.

    My WooCommerce site is a private store only opens to specific customers, some of them deligate the purchase work to their employees and would like to hide the balance on the account for security purposes.

    For the time being, only the balance showing on Checkout page is the most visible number. I managed to hide this by commenting the following function in includes/class-woo-wallet-payment-method.php

    public function get_icon() {
            $current_balance = woo_wallet()->wallet->get_wallet_balance( get_current_user_id() );
            return apply_filters( 'woo_wallet_gateway_icon', sprintf( __( ' | Current Balance: <strong>%s</strong>', 'woo-wallet' ), $current_balance), $this->id );
        }

    Now, anyone logged in can still see the balance as well as transaction history under My Account/My Wallet.
    I can see that it’s been called by ‘woocommerce_endpoint_title’ but where do I add the scripts to put a password on this section of the page?

    Thanks for the help. Hope my description is clear enough.

    • This topic was modified 6 years, 1 month ago by cooladai.
Viewing 1 replies (of 1 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @cooladai

    Please use woocommerce_account_menu_items filter to hide show My Wallet menu item in my account page using the password.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Hide user balance for front end’ is closed to new replies.