• Resolved james400studio

    (@james400studio)


    Hey,
    I need to change the wallet icon. How can I do it?
    Also I am not sure how to make the “show only account balance” shortcode to work. Where do I paste it to work?

    woo_wallet()->wallet->get_wallet_balance( get_current_user_id() );

Viewing 1 replies (of 1 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    Please use below shortcode for wallet balance in theme function.php file.

    function woo_mini_wallet_callback() {
        if (!function_exists('woo_wallet') || !is_user_logged_in()) {
            return '';
        }
        ob_start();
        $title = __('Current wallet balance', 'woo-wallet');
        $mini_wallet = '<a class="woo-wallet-menu-contents" href="' . esc_url(wc_get_account_endpoint_url(get_option('woocommerce_woo_wallet_endpoint', 'woo-wallet'))) . '" title="' . $title . '">';
        $mini_wallet .= woo_wallet()->wallet->get_wallet_balance(get_current_user_id());
        $mini_wallet .= '</a>';
        echo $mini_wallet;
        return ob_get_clean();
    }
    add_shortcode('woo-mini-wallet', 'woo_mini_wallet_callback');

    Also, you can change the wallet icon using custom CSS.

Viewing 1 replies (of 1 total)
  • The topic ‘How to change wallet icon’ is closed to new replies.