Home Forums WC Vendors Pro Support Vendor USERNAME

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
  • #57010
    Nate
    Participant

    Hey, Im just curious. When I edit a product and I assign it to a Vendor. On the drop down list of Vendors that I want to choose from, is showing me the list of Vendors by username. Is there a way to change the list so it shows the list of Vendors by Store Name? I tried to find the answer in the forum but no luck. Thanks.

    #57080
    Anna
    Member

    @beeeerrun
    Ahh not easily, no.
    The code defined the post author as the vendor by author name still- so it still is using the username.
    This code, which I am fairly sure is that which defines what you see in the selector box to assign a vendor, is found in the WC Vendors free file: wp-content/plugins/wcvendors/classes/admin/class-product-meta.php

    public function author_vendor_roles( $output )
    	{
    		global $post;
    
    		if ( empty( $post ) ) return $output;
    
    		// Return if this isn't a WooCommerce product post type
    		if ( $post->post_type != 'product' ) return $output;
    
    		// Return if this isn't the vendor author override dropdown
    		if ( !strpos( $output, 'post_author_override' ) ) return $output;
    
    		$args = array(
    			'selected' => $post->post_author,
    			'id'       => 'post_author_override',
    		);
    
    		$output = $this->vendor_selectbox( $args );
    
    		return $output;
    	}
    

    And no- I am not sure how to alter this properly at this time, but if you wish to give it a go, there’s the code that you would likely need to modify.

    #57088
    Nate
    Participant

    Thanks, I will try.

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