Support » Plugin: BuddyCommerce: WooCommerce and BuddyPress Integration » Tera Wallet (Woo Wallet) Integeration

  • Resolved YWard

    (@yward)


    I was wondering if it’s possible to integrate Tera Wallet as it’s one of the most commonly used woocommmerce plugins.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Brajesh Singh

    (@sbrajesh)

    Thank you for the suggestion.

    Please link me to the plugin. I will check and get back to you.

    Regards
    Brajesh

    Thank you so much for your prompt support.

    The plugin can be found here:
    https://wordpress.org/plugins/woo-wallet/

    Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi,
    Thank you for the suggestion. I am adding to to our future list. We will need a few months before we add this.

    Thank you
    Brajesh

    @sbrajesh Thank you once more.

    I forked your rep and I’m working on adding it myself as well. If I finish it before you do I’ll make sure to send a pull request.

    Keep up the good work!

    Plugin Author Brajesh Singh

    (@sbrajesh)

    Thank you.
    It’s wonderful. I am looking forward to have it in the plugin. I sincerely appreciate your effort and the willingness to contribute.

    Thank you
    Brajesh

    @sbrajesh I actually managed to finish half the work!

    The plugin terawallet appears to have a short code to display the plugin functionality in any page (not just my account), so I wrote the following code to create a new tab for the wallet, feel free to use it.

    You only need to replace the statics here such as title and tab order with your plugin variables.

    The 2nd part is redirects which I believe would be very easy for you to finish, feel free to use the code!

    function profile_tab_terawallet() {
          global $bp;
     
          bp_core_new_nav_item( array( 
                'name' => 'My Wallet', 
                'slug' => 'wallet', 
                'screen_function' => 'wallet_screen', 
                'position' => 107, //you can make this a variable in your plugin
                'parent_url'      => bp_loggedin_user_domain() . '/wallet/',
                'parent_slug'     => $bp->profile->slug,
                'default_subnav_slug' => 'wallet'
          ) );
    }
    add_action( 'bp_setup_nav', 'profile_tab_terawallet' );
     
     
    function wallet_screen() {
        
        // Add title and content here - last is to call the members plugin.php template.
        add_action( 'bp_template_title', 'wallet_title' );
        add_action( 'bp_template_content', 'wallet_content' );
        bp_core_load_template( 'buddypress/members/single/plugins' );
    }
    function wallet_title() {
        echo 'My Wallet';
    }
    
    function wallet_content() { 
      echo do_shortcode( '[woo-wallet]' );
    }

    EDIT: used echo do_shortcode( ‘[woo-wallet]’ ); instead of echo ‘[woo-wallet]’ and everything works fine.

    • This reply was modified 3 months, 3 weeks ago by YWard.
    Plugin Author Brajesh Singh

    (@sbrajesh)

    Thank you. I will check this over the weekend and get back to you.

    Regards
    Brajesh

    Hello

    Wen will this feature be fully complete

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