WooCommerce Product Vendors: Display Vendor Details

Display vendors details within the “vendor” tab on the product page. 

<?php
add_action( 'product_vendors_tab_content_after' , 'display_vendor_fields', 2, 10 );
/**
 * display_vendor_fields
 *
 * @access      public
 * @since       1.0
 * @return      void
*/
function display_vendor_fields( $vendor_ID, $product_ID ) {
	$vendor     = get_vendor( $vendor_ID );
	$commission = $vendor->commission;
	echo 'Commission: ' . $commission . '%';
}