Home Forums WC Vendors Pro Support Buddypress Private Message 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 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #15905
    jarvo
    Participant

    Morning All,

    I can see Buddypress integrates with WC Vendor Pro

    How would I go about adding a ‘private message’ button on a product?

    Thanks in advanced

    #15926
    Karen Thomas
    Participant

    Jamie is going to add a shiny new communication system for customers and vendors next year 🙂 but I’d be interested if the Buddypress ‘private message’ button can be added in the meantime

    @DigitalChild

    #15946
    jarvo
    Participant

    I have got this working, not an ideal solution but…

    Copy the WooCommerce title.php template into your theme/woocommerce/single-product/

    Then add the following code:

    
    <?php if( current_user_can('vendor')): ?>
    <a href="<?php bp_send_private_message_link() ?>" title="Private Message">Private Message</a>
    <?php endif; ?>
    

    It works but perhaps their is a better way of doing this?

    #15949
    jarvo
    Participant

    Actually, that code isn’t ideal, it should be:

    
    <?php if ( is_user_logged_in() ) echo '<a href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . get_the_author_meta('user_login') ) . '" title="Send a private message to this user" class="send-message">Private Message</a>'; ?>
    
    #15956
    WC Vendors Support
    Participant

    I’d improve that even further by adding an else with a button to the /my-account/ page to “Register to send a private message” or something like that. Lot of people won’t login to shop, but will login to send messages — if they know they need to.

    #15958
    jarvo
    Participant

    Good idea!

    Cheers

    #18267
    Joey Bordelon
    Participant

    A shiny new communication system tailored specifically for this sounds AMAZING!!!

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