Home Forums WC Vendors Free Support Vendor Shop page.. link to BP profile? without 'button'?

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 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6848
    Anna
    Member

    Hello,
    I’ve been trying to get this snip to work: https://gist.github.com/bentasm1/664894f93016becdc5bf

    I was hoping to use it and modify it somehow to get a link on the vendor’s shop pages to their buddypress profile.
    I have a small avatar next to the vendor shop name that I was hoping to link; however, I thought I’d at least try to get the above code to work before trying the avatar link. I cannot get either to work.

    I tried entering the github code on the archive-product.php, and it just showed : ‘[button link=”/models/’.$current_user->user_login.’/messages/compose/?r=’.$vendor_name_message->user_login.'”]SEND ME A PRIVATE MESSAGE[/button]’ etc. on my page. So, I believe the button part is not harmonizing? I’m not sure…

    I’ve also tried to add a link to the avatar on the vendor-main-header.php, but I cannot figure out how to “call” the bp profile in order to link. I just wanted either the avatar or a vendor name button next to it to automatically link to THAT vendor’s bp profile. Currently the avatar correctly shows THAT vendor’s avatar by using <?php echo get_avatar($vendor_id, 50); ?>

    I was able to use this code to show the vendor’s shop link in the bp profile page (thank you!): https://gist.github.com/bentasm1/e81112f4e77399a0d95c#file-gistfile1-txt
    I used option #2, since my theme does not use the button codes.

    That’s why I think perhaps that the code to add for the bp profile links may be causing me issues… they are ‘button’ shortcodes and I’m not sure how to change this to make proper links in this case. 🙁
    Help? I think it may be just a simple change in writing without the ‘button’ part… but I’m not sure how to do this.

    #6849
    WC Vendors Support
    Participant

    If your theme does not have a [button] shortcode, that won’t work. You’ll want to delete the do_shortcode lines. Replace it with something simple, such as echo ‘Hello this is where I want to put something’; and see if that works. When it does, customize from there. 🙂

    If you need to copy and paste code, try using pastebin and then just provide a link to your snippet here, so I can see what you’re using.

    #27215
    Konrad Sroka
    Participant

    Hi Anna @fervous,

    we have just released a FREE WordPress plugin to get your WC Vendors tabs integrated into the BuddyPress profiles:
    https://wordpress.org/plugins/bp-wc-vendors/

    works only with the WC Vendors PRO version

    Cheers, Konrad

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