Seller Name on product details page

This topic contains 3 reply and 3 voices, and was last updated by towhid 9 years, 5 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
November 13, 2014 at 2:32 am 30330
towhid Is there a way to have the seller name appear on the product details page to help sellers cross promote their product. What i want is the option as "Sold By: Seller Name" or "Seller: Seller Name" and an option similar to ebay with "view other items by seller"
November 13, 2014 at 8:09 am 30350
sophie sophie

on your product template :
$author = get_user_by( ‘id’, $post->post_author );
$store_info = dokan_get_store_info( $author->ID );

echo esc_html( $store_info[‘store_name’] );

November 15, 2014 at 2:15 pm 30520
towhid towhid

Thank you @sophie for your nice contribution. But a little bit correction here in your code.

$author = get_user_by( ‘id’, $post->post_author );
$store_info = dokan_get_store_info( $author->ID );

echo esc_html( $store_info['store_name'] );

replace with

$author = get_user_by( 'id', $post->post_author );
$store_info = dokan_get_store_info( $author->ID );

echo esc_html( $store_info['store_name'] );

Hope @nurul get solution form it.

Thank You. 🙂

November 17, 2014 at 3:11 pm 30612
towhid towhid

Hello Nurul,

If the problem solved please make the topic as resolved.

Thank You. 🙂

Viewing 3 Posts - 1 through 3 (of 3 total)