mini-wallet2021-03-28T18:03:20+05:30

Home Forums Core mini-wallet

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • kdr2000
    Participant
    Post count: 3

    How can I set the URL for the mini-wallet Icon to [woo-wallet] page instead of my account page? Thank you.

    kdr2000
    Participant
    Post count: 3

    I found the following code, but i do not know how to edit it to change the url of the link
    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 = ‘‘;
    $mini_wallet .= ‘ ‘;
    $mini_wallet .= woo_wallet()->wallet->get_wallet_balance(get_current_user_id());
    $mini_wallet .= ‘
    ‘;
    echo $mini_wallet;
    return ob_get_clean();
    }
    add_shortcode(‘woo-mini-wallet’, ‘woo_mini_wallet_callback’);

    Subrata Mal
    Keymaster
    Post count: 175

    Please use mini wallet from Appearance > Menus > WooCommerce endpoints section.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.