Home Forums Theme Support Dokan Seller Name on product details page

This topic is: resolved

This topic contains 3 replies, has 3 voices, and was last updated by  towhid 4 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30330

    Nurul
    Member
    Post count: 105

    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”

    #30350

    sophie
    Member
    Post count: 20

    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'] );

    #30520

    towhid
    Participant
    Post count: 4505

    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. ๐Ÿ™‚

    #30612

    towhid
    Participant
    Post count: 4505

    Hello Nurul,

    If the problem solved please make the topic as resolved.

    Thank You. ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Seller Name on product details page’ is closed to new replies.