• How can admin change the vendor profile image? it is not shown on the vendor settings page.

    also – is the a shortcode? meta-key? for getting and displaying the vendor profile image?

    • This topic was modified 4 years, 5 months ago by looknear.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Please use this plugin – https://www.ads-software.com/plugins/wp-user-avatar/

    Admin will able to manage vendor’s user avatar from wp-admin – users.

    WCFM dashboard does not allow Admin to manage vendor’s profile information. Only possible to edit/manage store setting.

    Thread Starter looknear

    (@looknear)

    Thanks, but to trust 3rd party plugin for a task like that is not acceptable.
    if you decided that admin can not change vendor profile image – thats ok.
    but my question was HOW TO GET THE IMAGE in code / elementor.

    as it’s been few days with no solution, i wrote my own widget tag plugin for that. something i think you need to provide these days when elementor users are growing in millions…

    here is my code, to get vendor profile image in elementor shop template:

    $vendor_id = get_the_author_meta(‘ID’);

    $wp_user_avatar_id = get_user_meta( $vendor_id, $wpdb->get_blog_prefix($blog_id).’user_avatar’, true );
    $wp_user_avatar = wcfm_get_attachment_url( $wp_user_avatar_id );
    if ( !$wp_user_avatar ) {
    $wp_user_avatar = apply_filters( ‘wcfm_defaut_user_avatar’, $WCFM->plugin_url . ‘assets/images/user.png’ );
    }

    return [
    ‘id’ => $wp_user_avatar_id,
    ‘url’ => $wp_user_avatar
    ];

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘vendor profile image’ is closed to new replies.