Home Forums WC Vendors Pro Support Feedback display.. what did I do? Or not do..

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!


Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #23196

    Hi guys…
    I’m attempting to show the vendor feedback in a sidebar when that shop is being viewed. I’ve been able to work some of this… but now I’m stumped. I’ve almost achieved what I would like. I just wish to show the ratings with the link to the ratings page… much as you do in the PRO headers. I am customizing the FREE headers, though, and making custom sidebars for the vendors.

    This is the functions.php code I have right now:

    function feedback_sidebar () {
        $vendor_shop 		= urldecode( get_query_var( 'vendor_shop' ) );
        $vendor_id   		= WCV_Vendors::get_vendor_id( $vendor_shop ); 
        $vendor_feedback 	= WCVendors_Pro_Ratings_Controller::get_vendor_feedback( $vendor_id );
    	$rating 		= $vf->rating;
    	$stars = '';
    	if ( $vendor_feedback ) {
    	  foreach ( $vendor_feedback as $vf ) {
                for ($i = 1; $i<=stripslashes( $rating ); $i++) { $stars .= "<i class='fa fa-star'></i>"; } 
    			for ($i = stripslashes( $rating ); $i<5; $i++) { $stars .=  "<i class='fa fa-star-o'></i>"; } 
    			echo $stars;
    			echo WCVendors_Pro_Ratings_Controller::ratings_link( $vendor_id, true );

    With this is the sidebar text widget:
    <p><?php feedback_sidebar (); ?></p>

    When viewing the vendor shop page, the first image (help-a) is what is seen. I cannot discern what’s up with the empty star procreation and so I do not know how to fix this. The link works the the shop ratings, though…. which is good. 😉
    When I click on the link, as you can see in the second image (help-b), the information in the sidebar changes — we are shown a blank shop link and avatar to the – SHOP HOME – (the link also does not work), and also the – LOCATION – disappears.

    I do not now what I am doing wrong or what I need to add to what I’ve done.

    I try not to bug you guys with the customization, since each site owner is going to have many things they want to do that are different, and it’s not really your place to assist us all with our tinkering.

    If you have the time to take a look, though, I’d be grateful. I HAVE actually tried very hard on this one… I just am not sure what I am missing here.

    Thanks for any help 🙂

    WC Vendors Support

    I’ll send Jamie over on this one. 🙂


    Hi Anna,

    You were close, here is a gist to do what you want. It detects that the sidebar is actually on the shop page before outputting to ensure you don’t get errors on other sidebar pages.





    Jamie- thank you so much.
    This led me to being able to fix the sidebars I have configured for the seller pages.
    I appreciate you taking the time to help me with this. 🙂

    WC Vendors Support

    [wcv_feedback vendor="user_login"] will work in Pro v1.2.5 to be released in a few days. 🙂

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