Home Forums Theme Support Dokan seller name

This topic is: not resolved

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

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

    obiora
    Member
    Post count: 57

    please i want the seller info under a single product to display the sellers first name and not the sellers username

    #45718

    towhid
    Participant
    Post count: 4505

    Hello Obiora,

    Use this line $author->first_name to show sellers first name instead of sellers username.

    Thanks

    #45740

    obiora
    Member
    Post count: 57

    on what file?

    #45813

    towhid
    Participant
    Post count: 4505

    Hello,

    Please open plugins/dokan-plugin/includes/wc-template.php

    and find this line:
    <?php printf( '<a href="%s">%s</a>', dokan_get_store_url( $author->ID ), $author->display_name ); ?>

    and replace the following line with the above line:
    <?php printf( '<a href="%s">%s</a>', dokan_get_store_url( $author->ID ), $author->first_name ); ?>

    Thanks

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

The topic ‘seller name’ is closed to new replies.