How to show Dokan Vendor Name in Single Product Page

<?php global $product;
		$author     = get_user_by( 'id', $product->post->post_author );
    	$store_info = dokan_get_store_info( $author->ID );
		if ( !empty( $store_info['store_name'] ) ) { ?>
                <span class="details">
                	<?php echo $store_info&#91;'price'&#93;; ?>
                    <?php printf( '<a href="%s">%s</a>', dokan_get_store_url($author->ID), $author->display_name ); ?>
                </span>
 		<?php } ?>

Leave a Comment

Your email address will not be published.

Related Posts