Home Forums WC Vendors Free Support Integrating with BuddyPress Profiles

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #5265
    dyames23
    Participant

    Do I replace the code <?php do_action( ‘bp_member_header_actions’ ); ?>

    with

    <?php

    // CHANGE /members/ to your BuddyPress Members Permalink. (/members/ is the BuddyPress Default)
    // CHANGE /vendors/ to your WC Vendors Store Permalink (/vendors/ is the WC Vendors Default)

    $wcv_profile_id = bp_displayed_user_id();
    $wcv_profile_info = get_userdata( bp_displayed_user_id() );
    $wcv_profile_role = implode( $wcv_profile_info->roles );

    if ( $wcv_profile_info->roles[0] == “vendor” ) {
    $vendor_name_message = get_the_author_meta( ‘user_login’ );
    $current_user = wp_get_current_user();

    echo “<br><br>”;
    if ( is_user_logged_in() ) {
    //The next 3 lines will show “SEND ME A PRIVATE MESSAGE” or “LOGIN TO SEND ME A PRIVATE MESSAGE”. If you dont need this, since there is already a Private Message button on the profile pages, comment out the next 3 lines. Be sure to leave the }; on the fourth line there, otherwise the if statement wont close.
    echo “user_login . “/messages/compose/?r=” . $wcv_profile_info->user_login . “\”>Send Private Message<br>”;
    } else {
    echo “Login to Send a Private Message<br>”;
    };
    // If you wanted to show the vendors profile, you would uncomment this line. Since this code is meant for the profile header, you may want to leave it commented out.
    //echo do_shortcode( ‘[button link=”/members/’.$wcv_profile_info->user_login.'”]VIEW MY PROFILE[/button]’ );
    echo “user_login . “/\”>Visit Store“;
    }

    ?>

    #5268
    WC Vendors Support
    Participant

    Oh, no. You most certainly don’t want to do that.

    See the “bp_member_header_actions”? That’s an action. If you program an action in your themes functions.php file, it will execute that action there. This is how you can customize themes/plugins/core without actually modifying them.

    https://codex.wordpress.org/Function_Reference/add_action

    So, code up your action in your themes functions.php file to echo out, or do whatever, and hook it into the bp_member_header_actions

    #5279
    dyames23
    Participant

    I am trying to follow the guide that you wrote. It says…

    Step #2 – In the member-header.php you just copied into your theme folder – Search for the php that says: <?php do_action( ‘bp_member_header_actions’ ); ?>

    Copy and paste the code below, changing it around as you see fit.

    So what should I do after I found that code and where should I copy and paste the second code?

    PS
    Rated WC Vendors 5 stars!!!

    #5280
    WC Vendors Support
    Participant

    Oh! I see what you mean. Paste the tutorials code after the line. You are not replacing it, just adding it after that.

    #5283
    dyames23
    Participant

    That was fast! Thanks!

    #5290
    dyames23
    Participant

    I now have a Visit Store button on My Profile which is great. Should there be a View My Profile button or Send me a private message button on My Shop page or Single Product Page?

    #5297
    WC Vendors Support
    Participant

    Sure, if you add one! 🙂

    #31837
    Andy
    Participant

    Hi Ben,
    Could you tell us where is the location that we can past the these codes? Is that in themes file? Thanks!
    Andy

    #31840
    WC Vendors Support
    Participant

    All my gists have the filename on the gist.

    #32209
    Andy
    Participant

    Thanks Ben, But I’m just not quite sure where exactly to paste these codes. Can we paste them in Theme’s Custom CSS area? Thanks a lot!

    #32263
    WC Vendors Support
    Participant

    If it’s CSS, it would go there. But this is PHP. Your themes functions.php file.

    #32632
    Andy
    Participant

    Hi Ben, it looks that the Theme (“Evolve”) is not edit-friendly. It only has Custom CSS area. Can we add there? Or where the other places we can add? Or we have to do it at somewhere of phpMyAdmin, or at FTP? Thanks!

    #32633
    WC Vendors Support
    Participant

    You can edit any theme. It’s just plain text php/css/javascript. Ask your theme author where to add CSS to it.

    #32638
    Andy
    Participant

    Hi Ben, Thanks a lot for quick response. It does have a blank custom CSS page for people to add code, so we can add php at there? Thanks again!

    #32640
    WC Vendors Support
    Participant

    PHP is not CSS. You add CSS to the CSS area. You add PHP to your themes functions.php file. GOogle “WordPress functions.php” and you’ll learn how to do this.

    #32643
    Andy
    Participant

    Hi Ben, we looked all instructions, but all these samples have a “Editor” page under Appearance, for people to find the php files there. For our theme Evolve, there is no such a page. Instead, it only has a Theme Options which contains only custom CSS. See attached screen shot. We contacted to the Theme owner several times, but no answer. Where can we paste the code? Thanks for the help.

    #32646
    WC Vendors Support
    Participant

    That’s just the thing, we arent the theme author either. You’re asking me to tell you how to do something specific to your theme for a theme that isnt working correctly or has parts of wp-admin disabled. That’s all you to figure out. 🙂

    #32693
    Andy
    Participant

    Hi Ben, Is it possible we ask you do some custom work for us? Please quote 2 things:
    1. BuddyPress+WC vendors: Add your php file and make site working with one login.
    2. The WC Vendor Commission split is not working. The owner gets 100%, but vendor get nothing. We tried all possibilities with several re-installs. Is it possible the theme’s issue? It may not compatible with WooCommerce?

    If eventually we have to change the theme, please advise some WC vendors and BuddyPress compatible themes.
    Our Site: http://www.kidinventor.com
    Please call us at 510-979-1872 if you have any questions.
    Thanks!

    Andy

    #32695
    WC Vendors Support
    Participant

    We do not offer any custom development / coding / solutions…… Just no time for it. What we recommend is http://codeable.io those guys know how to code WC Vendors and do it fast and well.

    #32909
    Alice In WP
    Participant

    Hi Ben,

    I have also tried this, as dyames23 did, but it does absolutely nothing for me – tried both options?

    While I am at it, I try to explain what I need to do and can you please advise if there is a way to achieve this? I have to make clear that I am not a programmer, but I can do (some) things following tutorials *blushing* haha 🙂

    PICTURE 1

    I get the product list onto the BP profile CURRENTLY VIA SHORTCODE:

    [wcv_products vendor=”VENDOR-LOGIN-NAME”]
    [wcv_products vendor=”HoneyBooBoo”] – In this case I have to input this manually.

    What you have discussed above (member-header.php) – can it list just the product of this
    BP user automatically into their BP profile or is it just a button pointing onto their WCV store?

    PICTURE 2

    When I click this link, it brings me onto a page listing all that person’s products. I need this link to point to the seller’s BP profile and not onto the page with all their products (PICTURE 3).

    Link from PICTURE 2 gets me onto page in PICTURE 3

    PICTURE 4

    It’s the same, but on the product page – also this link should be pointing to the seller’s BP profile and not to “PICTURE 3”.

    Does it make sense? I’m sorry if I’m a little chaotic, but I admit I may have issues expressing my thoughts and over complicate things 🙁

    A) Basically I need all the products of a given BP user to be populated on their BP profile.
    B) All the Sold by: links to point to their BP profile.

    Is there a way I can achieve this myself?

    Thanks a lot!

    #32910
    WC Vendors Support
    Participant

    If you want the sold by links to go elsewhere, you would remove our action (see the KnowledgeBase for removing Sold By) and then create your own function and hook it in the same place. This is all up to you, it’s custom coding 🙂

    #33622
    Andy
    Participant

    Hi Ben,
    After installed BP with the codes that required from WC Vendors, we did first and 2nd Steps, and tried both option 1 and 2 at 2nd step, and we found following issues:
    The site has 2 logons: one is WC Vendors’: “Account /Vendors dashboard”, and the other is BuddyPress’s –“Log In”-“Register”.
    then the situation is like as below:
    1. WC Vendors’ “Account/Vendors Dashboard cannot log in, or register. After hit the register button, nothing happened. Either click “be a vendor” or not is the same.
    2. BuddyPress’s login can do login (with WordPress) and Register, but the all registered people become subscriber as the default and the applicant cannot change their status, such as a vendor or contributors. Only Admin can do.
    How can we fix this issue? Thanks!
    Rate WC Vendor 5 star!

    #33624
    WC Vendors Support
    Participant

    Vendors should use /my-account/ to register, or if they already have an account, the vendor dashboard.

    #33656
    Andy
    Participant

    Dear Ben,
    Thanks! Now I understand the Vendor can only login/register at WC Vendor’s Account/Vendor’s Dashboard. But the issue is that people can not login or register from BOTH Account/Vendor’s Dashboard NOW. See above. What will be the possible root cause? Thanks!

    #34870
    Andy
    Participant

    Dear Ben,
    We tried login/register at WC Vendor’s Account/Vendor’s Dashboard with many ways. The issue is that people can not login or register from WC vendors’ Account/Vendor’s Dashboard NOW. It’s OK login/register from BuddyPress’s login and registration page. See the Error message screenshot link below and attachment.

    http://prntscr.com/bgyg3h

    Your plugin is compatible with Buddypress,, the the login should be the shared, right? At the worst case, we can have our customer use two login/registration, but it must working. Thanks!

    #34951
    WC Vendors Support
    Participant

    @Andy WC Vendors does not handle logins from customers, vendors, admins, or anyone. That is all handled by WordPress. WooCommerce uses the /my-account/ page for logins, which is passed through WordPress. BuddyPress uses their own page, which also is passed through WordPress. If users can not login on a BuddyPress or WooCommerce page, then you would want to contact the respective plugin authors for support. Nothing WC Vendors does interferes with or handles logins.

    Cheers

Viewing 26 posts - 1 through 26 (of 26 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.