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.
Thank you to all of our customers!
- This topic has 25 replies, 4 voices, and was last updated 7 years, 10 months ago by WC Vendors Support.
-
AuthorPosts
-
May 12, 2015 at 10:24 pm #5265dyames23Participant
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“;
}?>
May 12, 2015 at 11:14 pm #5268WC Vendors SupportParticipantOh, 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
May 13, 2015 at 12:43 am #5279dyames23ParticipantI 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!!!May 13, 2015 at 12:47 am #5280WC Vendors SupportParticipantOh! I see what you mean. Paste the tutorials code after the line. You are not replacing it, just adding it after that.
May 13, 2015 at 1:01 am #5283dyames23ParticipantThat was fast! Thanks!
May 13, 2015 at 3:30 am #5290dyames23ParticipantI 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?
May 13, 2015 at 11:07 am #5297WC Vendors SupportParticipantSure, if you add one! 🙂
May 8, 2016 at 12:57 pm #31837AndyParticipantHi Ben,
Could you tell us where is the location that we can past the these codes? Is that in themes file? Thanks!
AndyMay 8, 2016 at 1:50 pm #31840WC Vendors SupportParticipantAll my gists have the filename on the gist.
May 13, 2016 at 3:16 am #32209AndyParticipantThanks 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!
May 13, 2016 at 9:38 pm #32263WC Vendors SupportParticipantIf it’s CSS, it would go there. But this is PHP. Your themes functions.php file.
May 18, 2016 at 9:39 pm #32632AndyParticipantHi 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!
May 18, 2016 at 9:41 pm #32633WC Vendors SupportParticipantYou can edit any theme. It’s just plain text php/css/javascript. Ask your theme author where to add CSS to it.
May 18, 2016 at 9:58 pm #32638AndyParticipantHi 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!
May 18, 2016 at 10:07 pm #32640WC Vendors SupportParticipantPHP 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.
May 18, 2016 at 11:16 pm #32643AndyParticipantHi 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.
May 18, 2016 at 11:23 pm #32646WC Vendors SupportParticipantThat’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. 🙂
May 19, 2016 at 1:45 pm #32693AndyParticipantHi 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
May 19, 2016 at 2:05 pm #32695WC Vendors SupportParticipantWe 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.
May 21, 2016 at 10:18 am #32909Alice In WPParticipantHi 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!
May 21, 2016 at 10:33 am #32910WC Vendors SupportParticipantIf 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 🙂
May 31, 2016 at 11:09 pm #33622AndyParticipantHi 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!May 31, 2016 at 11:21 pm #33624WC Vendors SupportParticipantVendors should use /my-account/ to register, or if they already have an account, the vendor dashboard.
June 1, 2016 at 12:47 pm #33656AndyParticipantDear 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!June 16, 2016 at 12:14 am #34870AndyParticipantDear 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.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!
June 16, 2016 at 7:59 pm #34951WC Vendors SupportParticipant@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
-
AuthorPosts
- The forum ‘WC Vendors Free Support’ is closed to new topics and replies.