• Resolved Padaben

    (@padaben)


    Hi, I did make a CRM user WP user by using the checkbox into admin.
    but anyhow the image I set into CRM user page is not visible into this same user wp profile page.
    I am missing something or it is like this ?
    Would be nice to have it copied !
    thanks for your comments
    regards

    • This topic was modified 8 years, 1 month ago by Padaben.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author weDevs

    (@wedevs)

    Hello @padaben,

    If you do not set any image as profile image for the CRM user(contact), then it will use default profile image from the WP user account.

    But if you update the CRM user profile image then it will not update WP user profile image. Cause WP user profile image comes from gravatar(https://en.gravatar.com).

    If you want to update profile image of WP user, then you have to do it by using gravatar.

    Hope this was helpful.
    Thanks ??

    Thread Starter Padaben

    (@padaben)

    HI, thanks for your answer.
    I do not use gravatar in my website and each of my users neither.
    so my WP user image is default one for the WP user.

    what is the function to get the user image or company image in ERP ?
    a function I can call from my template ?
    thanks
    regards

    Plugin Author weDevs

    (@wedevs)

    Hi Padaben,

    Here is the function location:modules/crm/includes/functions-customer.php
    line 13: function erp_crm_get_avatar( $id, $email = '', $user_id = 0, $size = 32 )
    line 42 function erp_crm_get_avatar_url( $id, $email='', $user_id = 0, $size = 32 )

    Thank you ??

    Thread Starter Padaben

    (@padaben)

    Hi, thank you for your response.
    Cannot get it work :
    Fatal error: Call to undefined function erp_crm_get_avatar_url() in /PATH/themes/mytheme/functions.php

    any way to get it done ?
    thanks

    Thread Starter Padaben

    (@padaben)

    Thanks I got it to work ??
    regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP user email from CRM user Image profile’ is closed to new replies.